I am using this line of code
a = row.Cells[5].Text;
b = row.Cells[6].Text;
c = row.Cells[9].Text;
d = row.Cells[12].Text;
it is working fine.
but my problem is when I add new column to the grid or delete one or change columns order.
in that case the each line of code has to change as the order of the columns have changes.
is there any way I can use Column name instead of number?