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.

virtualgrid.Selections.Count =1 even when i am selecting multiple rows

Thread ID:

Created:

Updated:

Platform:

Replies:

68363 Sep 19,2007 09:02 AM Sep 24,2007 09:35 AM Windows Forms 1
loading
Tags: GridControl
Yeshwant Raut
Asked On September 19, 2007 09:02 AM

Hi,


I want to check number of rows selected in virtual grid for which i am making use of property virtualgrid.Selections.Count which returns me number of rows selected.

When i am using control and selecting two rows i am receving count as 2 but when i am making use of shift key for selecting multiple row it show count as one do i am making use of right property to check selected rows.

Let me known what might be the cause.

Thanks
Yeshwant

Rajarajeswari S [Syncfusion]
Replied On September 24, 2007 09:35 AM

Hi,

Thanks for using Syncfusion products,

In Virtual Grid The selected rows will come under a rangelist . Please refer the following code snippet which illustrates this,

private void button1_Click(object sender, EventArgs e)
{

GridRangeInfoList rangeList = this.gridControl1.Selections.GetSelectedRows(true, false);
MessageBox.Show(rangeList[0].Bottom.ToString());
}

Here, rangeList[0].Bottom denotes the row-index of the Bottom-Right corner of the cell range

Please let me know if this helps you,

Regards,
S.Rajarajeswari

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.

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.

;