@Stef_99 you can directly use the count method.
dt.RowCount-1 will be equals to the ID of last row
dt.ColumnCount-1 will the the ID of last column in your datatable
@Stef_99 you can directly use the count method.
dt.RowCount-1 will be equals to the ID of last row
dt.ColumnCount-1 will the the ID of last column in your datatable