Being a newbie to C#Net 2003, I am having problem trying to retrieve data from a specific clicked row on the DataGrid to display the data on the TextBox on the FORM. This is the structure of the DataGird:-
Col0 = CustomerId
Col1 = First Name
Col2 = Last Name
Col3 = CreditCard
Please help me. I need your help for the C# script.
The script below is not working.
private void DataGrid_Click(object Sender, System.EventArgs e)
int CurrRow = DataGrid.CurrentRowIndex;
txtCustID.text = DataGrid.CurrentCell(currRow,0);
txtFirstName.text = DataGrid.CurrentCell(currRow,1);
txtLastName.text = DataGrid.CurrentCell(currRow,2);
txtCreditCard.text = DataGrid.CurrentCell(currRow,3);