I want to know how to compares values in a column to get the largest integer in the specific column. Considering Column (0) has integers in it how to find the largest integer?
i tried the coding below it dosent work
Dim abc As Integer = Datagrid.RowCount - 1
Dim abcd As Integer = Datagrid.Rows(abc).Cells(0).Value
MsgBox(abcd)
IF the column (0) load from accending then it will ofcourse get the largest when the user sorts the column or any column it simply gets the last rows cell (0) value. Is there a way to loop through and get the largest integer? The msgbox is just to let me know what is the number.