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.
Unfortunately, activation email could not send to your email. Please try again.

Multiple selection bug?

Thread ID:





32665 Aug 5,2005 06:08 AM Aug 5,2005 11:28 AM Windows Forms 5
Tags: GridControl
Administrator [Syncfusion]
Asked On August 5, 2005 06:08 AM

Set Me.ListBoxSelectionMode = SelectionMode.MultiExtended in GridControl. The first time it gets viewed, the first row is selected. Pressing shift, select the second row. Result: the whole grid gets selected (headers as well).

Administrator [Syncfusion]
Replied On August 5, 2005 06:28 AM

What version are you using? I do not see this behavior in our latest code. Can you upload a little sample showing the problem?

Administrator [Syncfusion]
Replied On August 5, 2005 09:24 AM

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.GridControl1.Model.Selections.SelectRange(Syncfusion.Windows.Forms.Grid.GridRangeInfo.Row(1), True) End Sub

Administrator [Syncfusion]
Replied On August 5, 2005 09:53 AM

What version are you using? I can immediately shift+click in row two of this sample without selection the whole grid using out latest code base. http://www.syncfusion.com/Support/user/uploads/ListBoxSelections_bb73dd4e.zip

Administrator [Syncfusion]
Replied On August 5, 2005 10:52 AM

I''m using Sorry for the misunderstanding, I wanted to say that the header gets selected, not the whole grid - in your sample as well.

Administrator [Syncfusion]
Replied On August 5, 2005 11:28 AM

That is because there is no currentcell set. So, instead of Me.GridControl1.Model.Selections.SelectRange(Syncfusion.Windows.Forms.Grid.GridRangeInfo.Row(1), True) try Me.GridControl1.CurrentCell.MoveTo(1, 1)


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.

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.