I have created my custom DataGridViewNumericTextBoxColumn derived from DataGridViewTextBoxColumn class.
When I call
this.HeaderDataGridView.Sort = Sort.P
If you are using a binding source, you can simply set the .Sort property to the name of the column you want to sort on. For example:
myBS = new BindingSource(); myBS.DataSource = DataSet.MY_TABLE; myBS.Sort = "MY_COLUMN"; myGrid.DataSource = myBS;