Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the best way to add details view from master grid

Status
Not open for further replies.

radiance

Programmer
Jan 4, 2003
164
US
I am relatively new to C# and I am using visual studio 2005. However, I am stuck on how to show details once a user selects a record. Currently, the record is highlighted, but I don't know how to present the additional details (which is a mini-cart). I have other button options too (Select, Approve, Reject). Do I need to add another gridview?

I have a view for the first gridview.

So far, i have done the following:

1) Created the connection string

2) Declared the command object

3) Created a sqlDataAdapter instance (ie: SqlDataAdapter adap = new SqlDataAdapter(comm); comm was the command object)

4) added a sqlcommand builder

5) created an update adapter (Microsoft said to include all sql actions that need to happen)

6) Created the parameters

7) Created the dataset

8) bound the data to my gridview

I set my initial gridview to have the following buttons:
<Columns>
<asp:CommandField ButtonType="Button" ShowSelectButton="True" SelectText="View Details" />
<asp:CommandField ButtonType="Button" EditText="Approve" ShowEditButton="True" />
<asp:CommandField ButtonType="Button" DeleteText="Reject" ShowDeleteButton="True" />
</Columns>

 
looks like your working with asp.net. these are web controls. the forum855 will be better equiped to answer this question.

there are as many answers to master/detail as there are developers. google "asp.net master detail grids" and "asp.net tutorials".
and are great starting points.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top