Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to select all column cells by clicking on the column header similar to Excel

$
0
0

To provide this functionality, handle the ready-to-use ColumnHeaderClick event. In the event handler, iterate through the grid's visible rows and invoke the SelectCell method for them.

Question Comments

Added By: Ryan Lucking at: 10/31/2017 7:20:35 AM    This example uses an obsolete API.


'GridViewBase.BeginSelection()' is obsolete: 'Use the DataControlBase.BeginSelection method instead'
'GridViewBase.EndSelection()' is obsolete: 'Use the DataControlBase.EndSelection method instead'
Added By: Ivan (DevExpress Support) at: 11/1/2017 7:18:47 AM    Hi Ryan,
Thank you for letting us know. I have updated this example to avoid using these obsolete methods and overriding the non-documented OnColumnHeaderClick method.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>