The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have GridControl and I would like to allow the possibility to select multiple cells. It does work for all the cells beside the Header, I can select every cells but not the Header. How I can enabled this feature?
AAArulraj A Syncfusion Team May 28, 2010 03:26 PM UTC
Hi Riccardo,
Thanks for your interest in Syncfusion Products.
By default, when the column header cell is selected, it will select that entire column. If you would like to select only the column header cell while clicking on it, you can handle the SelectionChanging event and get the first cell value by GetFirstCell() method and reset the values of that range. The below code explains the same. int top, left ; void gridControl1_SelectionChanging(object sender, GridSelectionChangingEventArgs e) { if (e.ClickRange.IsCols) { Clipboard.Clear(); e.Range.GetFirstCell(out top, out left); e.Range = GridRangeInfo.Cell(top, left); } }
Please let me know if you have any further concerns.