c# get gridview DataKeyNames

97

c# get gridview DataKeyNames -

foreach (GridViewRow row in grid.Rows)
{
    int id = Convert.ToInt32(grid.DataKeys[row.RowIndex].Value.ToString());
}

Comments

Submit
0 Comments