Hi friends,
I have datagridview.
When i click on headerrow of that datagridview.All rows set in ascending order by clicked column.But i don't want to ascending this. which property i should use???
I tried to find but no solution.
Anyone plz help me.......

Thanks in advance.

There is no direct access to disable column sorting in the datagridview.
But you can try this:

For Each dgvCol As DataGridViewColumn In Me.DataGridView1.Columns
    dgvCol.SortMode = DataGridViewColumnSortMode.NotSortable
Next
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.