Fetch total rows and columns and pass these values as index to datatable dtable
int totalRows = dtable.Rows.Count;
int totalCols = dtable.Columns.Count;
string value = dtable.Rows[totalRows-1][totalCols-1].ToString();
TextBox2.Text=value;
Suppose your datatable dtable
in C# contains these rows and now you want last columns last row value that is col3
last row value which if you see in datatable below is vgt.
col1 | col2 | col3
1 abc pqr
2 art lmn
3 yut xyz
4 btt vgt
dtable.Rows.Count
gives me number of rows which is 4
dtable.Columns.Count
gives me number of columns which is 3
So to access the last row last column value we pass these values as index to datatable which is like a 2D array and since you know arrays start from index 0 , the actual address of last row last column would be [totalRows-1][totalColumns-1]