Hello There !,
First of all i have a datatable and i already have 4 entries in 4 rows namely from row 0 to row 4.
Now i just want to add a fifth entry in the fifth row
My Code is,
int var = Table2.Rows.Count;
int tot =Table2.Rows.Count +ListBox1.Items.Count;
for (int m = Table2.Rows.Count; m <= tot; m++)
{
Table2.Rows.Add(m);
Table2.Rows[m]["Documents"] = txtdoc.Text;
Table2.Rows[m]["Remove"] = "Remove";
}
This code gives me an error Saying there is no row at position no 5 even though
i have added a new row at position number 5
...
Go to the complete details ...