|
Positive Solutions Upstairs
I just don't know how to pass 2 parameters with CommandArgument~~
About DataKeys usage
<asp:GridView ID="GV" DataKeyNames="ID,Name"....
<Columns>
<asp:BoundField DataField="ID".../>
<asp:BoundField DataField="ID".../>
...
</Columns>
</asp:GridView>
Code behind
DataKey DataKey = GV.DataKeys[i]; //i is the number of rows
DataKey[0] //ID
DataKey[1] //Name |
|