I am searching for codes that could find the min and max(or first and last values) from a column in a datatable.
I have stored the datatable with four column values i want to find the min and max values from the third column(index 2) and display it to the user.
I tried many ways but all are causing exceptions...
Last i tried this code but even this is not working..
count = Convert.ToInt32(dt.Rows.Count); start = Convert.ToInt32(dt.Rows.ToString()); end = Convert.ToInt32(dt.Rows[count].ToString());