Posted By

blackf0rk on 03/16/09


data key row bound rowdatabound rowbound datakey datakeys

Versions (?)

DataKey on RowDataBound

 / Published in: VB.NET

If you need to get the DataKey value in RowDataBound (e.g. Assigning the DataKey to the CommandArgument of a button):

  1. SomeButton.CommandArgument = Convert.ToString(YourGridview.DataKeys(e.Row.RowIndex).Values(0).ToString())

Report this snippet  

You need to login to post a comment.