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>
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>