For a windows application, I have a form with a gridview. In the form, I have an Edit button. If the user selects one row and clicks on Edit, it has to redirect to another form with the selected data. The user can then enter details in that. When the user clicks on Save Data, it should save and go back to the database.
FIRSTListForm
private void btnNewFIRSTList_ItemClick(object sender, ItemClickEventArgs e)`
{
FIRSTEditForm FIRSTEditForm = new FIRSTEditForm(FIRSTID);`
FIRSTEditForm.Show();
}
private void btnEditFIRSTList_ItemClick(object sender, ItemClickEventArgs e)
{
//I need to know which row I selected before to Edit button
//object IdFirst = ((GridView)sender).GetRowCellValue(e.RowHandle, "IDFIRST");
//I need like a GetRowCellValue
FIRSTEditForm.Show();
}