SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
int index = row.Table.Columns["ColumnName"].Ordinal;