Hi,
You can set the Column.HeaderCell.SortGlyphDirection property. For example:
DataTable dt01 = new DataTable();
dt01.Columns.Add("col01");
dt01.Columns.Add("col02");
dt01.Columns.Add("col03");
dt01.Rows.Add("11", "aa","1a");
dt01.Rows.Add("22", "bb","2b");
dataGridView1.DataSource = dt01;
dataGridView1.Columns[0].HeaderCell.SortGlyphDirection = SortOrder.Ascending;
dataGridView1.Columns[1].HeaderCell.SortGlyphDirection = SortOrder.Descending;
DataGridViewColumnHeaderCell.SortGlyphDirection Property
Gets or sets a value indicating which sort glyph is displayed.
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumnheadercell.sortglyphdirection.aspx
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.