Can I Skip the Click Event When Double-clicking a Column Header

1 Answer 35 Views
GridView
Michael
Top achievements
Rank 1
Iron
Iron
Veteran
Michael asked on 23 Sep 2024, 01:04 PM

I'd like to do something when the user double-clicks on a gridview column header without running the click handler and without setting the sort to that column.

Can I?  How?

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 26 Sep 2024, 06:49 AM

Hello, Michael,

If you intend to prevent sorting for a specific column when double-clicking on a column header cell, you can disable sorting for a particular column by setting the AllowSort property to false:

this.radGridView1.Columns["LastName"].AllowSort = false;

I hope this information helps. If you have any further questions, please let me know.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or