thejeraldo
Well-known member
how do i automatically sort a specific column of a datagridview ascendingly? i just want my datagridview to sort automatically on a particular column everytime it fills up again. thanks a lot!
DGEmp.Columns("ColLName").SortMode = DataGridViewColumnSortMode.Programmatic
DGEmp.Columns("ColLName").HeaderCell.SortGlyphDirection = SortOrder.Ascending
DGEmp.Sort(DGEmp.Columns("ColLName"), System.ComponentModel.ListSortDirection.Ascending)