Please try with following code.
protected void GridView3_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string lsDataKeyValue = GridView3.DataKeys[e.Row.RowIndex].Values[0].ToString();
}
}
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string lsDataKeyValue = GridView3.DataKeys[e.Row.RowIndex].Values[0].ToString();
}
}
No comments:
Post a Comment