I have some code which sets the value of cells in a DataRow by column name i.e.
row[\"ColumnName\"] = someValue;
I want to also set the val
You can use DataColumn.Ordinal to get the index of the column in the DataTable. So if you need the next column as mentioned use Column.Ordinal + 1:
DataTable
Column.Ordinal + 1
row[row.Table.Columns["ColumnName"].Ordinal + 1] = someOtherValue;