siva
siva

Reputation: 67

DataGrid sorting with column text change C#

How to dynamically sort data in DataGridView in Windows Forms when we are entering data to a column header?

Upvotes: 1

Views: 247

Answers (1)

Tigran
Tigran

Reputation: 62276

The easiest way is to bind DataGrid to DataView and after use its RowFilter property to query data, as DataGrid is binded to that data, the content of it will be updated automatically.

Upvotes: 1

Related Questions