DgvResults.DataSource = Dv If DgvResults.RowCount > 0 Then DgvResults.CurrentCell = DgvResults.Item(cmbInd, 0) End If Try If IsNumeric(DgvResults.Rows(0).Cells(CmbSearchBy.SelectedIndex).Value) Then DgvResults.Columns(CmbSearchBy.SelectedIndex).ValueType = GetType(Integer) End If DgvResults.Sort(DgvResults.Columns(CmbSearchBy.SelectedIndex), System.ComponentModel.ListSortDirection.Descending) Catch ex As Exception
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)