sorry, I can not speak english very well.
why this error?
this my code :
gridNegara = RadGridView
txtKodeNeg, txtNamaNeg, txtIbuKotaNeg = RadTextBox
when running visual studio (F5), an error message appears:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
It happens when I click on FilteringRow
thanks for your attention.
why this error?
this my code :
private
void
gridNegara_CellClick(
object
sender, GridViewCellEventArgs e)
{
int
i = gridNegara.CurrentRow.Index;
txtKodeNeg.Text = (gridNegara.Rows[i].Cells[0].Value).ToString();
txtNamaNeg.Text = (gridNegara.Rows[i].Cells[1].Value).ToString();
txtIbuKotaNeg.Text = (gridNegara.Rows[i].Cells[2].Value).ToString();
}
gridNegara = RadGridView
txtKodeNeg, txtNamaNeg, txtIbuKotaNeg = RadTextBox
when running visual studio (F5), an error message appears:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
It happens when I click on FilteringRow
thanks for your attention.