Revision: 12475
Updated Code
at March 16, 2009 12:40 by blackf0rk
Updated Code
SomeButton.CommandArgument = Convert.ToString(YourGridview.DataKeys(e.Row.RowIndex).Values(0).ToString())
Revision: 12474
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 16, 2009 12:40 by blackf0rk
Initial Code
SomeButton.CommandArgument = Convert.ToString(gv_contacts.DataKeys(e.Row.RowIndex).Values(0).ToString())
Initial URL
Initial Description
If you need to get the DataKey value in RowDataBound (e.g. Assigning the DataKey to the CommandArgument of a button):
Initial Title
DataKey on RowDataBound
Initial Tags
data
Initial Language
VB.NET