if you need last column name then try this
dt.Columns(dt.ColumnCount-1).ColumnName will give the last column name
if you mean the index when you say ID then dt.ColumnCount-1 will give it
cheers
if you need last column name then try this
dt.Columns(dt.ColumnCount-1).ColumnName will give the last column name
if you mean the index when you say ID then dt.ColumnCount-1 will give it
cheers