How to get the last row index of a Specific column in a DT?

You could loop through each row, check if your column is null or empty with String.IsNullOrEmpty(yourRow(“YourColumn”).ToString), and if false use the index from the for loop - 1 as your row number.

1 Like