am having trouble with this error code while trying to insert certain values to the database. Can somebody help?
Code:
if (e.ColumnIndex == 4)
{
try{
string id = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
string item = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();