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.
Syncfusion Feedback

Multiple selection bug?

Thread ID:

Created:

Updated:

Platform:

Replies:

32665 Aug 5,2005 10:08 AM UTC Aug 5,2005 03:28 PM UTC Windows Forms 5
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 5, 2005 10:08 AM UTC

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 10:28 AM UTC

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 01:24 PM UTC

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 01:53 PM UTC

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 02:52 PM UTC

I''m using 3.2.1.0. 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 03:28 PM UTC

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)

CONFIRMATION

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.

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

;