Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I prevent sorting a single column in a DataGrid?

column datagrid Sorting
0
Posted

How do I prevent sorting a single column in a DataGrid?

0

You can do this by deriving the DataGrid and overriding the OnMouseDown method. In the override, do a HitText and if the hit is on a column header that you do not want to sort, do not call the base class’s method. Here is a code that sorts all columns…

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123