you can use this linq dt.AsEnumerable().Last()(dt.ColumnCount-1).ToString
dt.AsEnumerable().Last()(dt.ColumnCount-1).ToString