We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row / Column selection

Thread ID:





94455 May 13,2010 07:22 PM UTC May 18,2010 04:59 AM UTC Silverlight 1
Tags: GridControl
Administrator [Syncfusion]
Asked On May 13, 2010 07:22 PM UTC

I don't understand how the row/column selection is working. If I have two header rows, it seems to only properly select multiple columns if I use the first header row.

For example, if I fill my grid as below, and I mouse down on "Row0 Col3" and drag to "Row0 Col4", it selects both column 3 and 4. If I then ctrl click on "Row0 Col6", it selects column 6 in addition to 3 and 4.

If, on the other hand, I mouse down on "Row1 Col3" (which is still a fixed header cell) and drag to "Row1 Col4", only column 3 is selected. If I then ctrl click on "Row1 Col6", it deselects column 3, and only column 6 is selected.

The HeaderColumns have the same problem, although there I can make two row selections, but then the third one resets the selection.

I don't understand why the first and second header rows or header columns are treated differently. A click on any header should be the same, in my opinion.

Grid init code:

this.sfGrid.AllowDragColumns = false;
this.sfGrid.Model.Options.ActivateCurrentCellBehavior = Syncfusion.Windows.Controls.Grid.GridCellActivateAction.DblClickOnCell;
this.sfGrid.Model.RowCount = 100;
this.sfGrid.Model.ColumnCount = 20;
this.sfGrid.Model.HeaderColumns = 2;
this.sfGrid.Model.HeaderRows = 2;
this.sfGrid.Model.FrozenColumns = 2;
this.sfGrid.Model.FrozenRows = 2;
this.sfGrid.Model.Options.AllowSelection = Syncfusion.Windows.Controls.Grid.GridSelectionFlags.Row | Syncfusion.Windows.Controls.Grid.GridSelectionFlags.Column | Syncfusion.Windows.Controls.Grid.GridSelectionFlags.Cell | Syncfusion.Windows.Controls.Grid.GridSelectionFlags.Multiple;

for (int i = 0; i < 100; i++)

for (int j = 0; j < 20; j++)

this.sfGrid.Model[i, j].CellValue = string.Format("Row{0} Col{1}", i, j);



Varun P [Syncfusion]
Replied On May 18, 2010 04:59 AM UTC

Hi Jaimie,

Thanks for using Syncfusion products.

Could you please create a Direct-trac incident with the forum title ? We had an issue in this. We will follow this up in the incident

Please let me know if you have any queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon