Get DataKey values in GridView RowCommand pass the RowIndex via CommandArgument and use it to retrieve the DataKey value string Department = grdDetailsinst.DataKeys[row.RowIndex]["Usertype"].ToString(); string userid = grdDetailsinst.DataKeys[row.RowIndex]["Intuserid"].ToString();
ASP.NET || Javascript || Dataobject || Code Solutions Free Open Source code for Developers