" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi
/This method returns the Row Handle by taking the primary key value as the parameter.
private int FindRowHandle(int keyValue)
int retval = -1;
if (keyValue == 0)
for (int count = 0; count < grdvEmployees.RowCount; count ++)
if (Convert.ToInt32(grdvEmployees.GetRowCellValue(count, gcEmpID)) == keyValue)
retval = count;
In the above method ´gcEmpID’ is the GridView’s column name which holds the value for the primary key field.
Mail (will not be published) (required)
Enter Captcha Code *
two + 9 =
Burn Ignorance is a knowledge initiative by Mindfire Solutions
Subscribe to our mailing list to get the updates to your email inbox...