Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get gridview DataKeyNames

foreach (GridViewRow row in grid.Rows)
{
    int id = Convert.ToInt32(grid.DataKeys[row.RowIndex].Value.ToString());
}
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #gridview #DataKeyNames
ADD COMMENT
Topic
Name
6+9 =