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.

Error selecting Row in GridGroupingWeb

Thread ID:

Created:

Updated:

Platform:

Replies:

54194 Jan 3,2007 11:57 AM Jan 8,2007 06:03 PM ASP.NET Web Forms (Classic) 7
loading
Tags: GridGroupingControl
Marco
Asked On January 3, 2007 11:57 AM

This is my problem:
I've a DropDownList that change the dataset of GridGrupping. After change dataset GridGrupping miss selection row because GridGroupingControl1.Table.SelectedRecords is always count=0.

Have you got an example.

Thanks.

Marco

Gokul B [Syncfusion]
Replied On January 3, 2007 02:13 PM

Hi Marco,

We are not sure in your query. However we have created one sample which will bind the Grid dynamically with selection Features. Could you please update us is this the one you mentioning? Before compile our sample, make sure that your installed version number is registered properly using register tag in .aspx file. Here we assumed that you are using 4.402.0.50 version.

Forum_54194.zip

kindly Let us know if this helps.

Thanks for using Syncfusion products.

Regards,
Gokulkumar.B

Marco
Replied On January 4, 2007 03:28 AM

Thans for replay but I want select and get the value of a grid row but GridGroupingControl1.Table.SelectedRecords is always zero.

thanks.
Marco

Gokul B [Syncfusion]
Replied On January 4, 2007 11:08 AM

Hi Marco,

For your kind notification, to get a particular record no matter when the user clicks on GridGroup row please have a look at the below code snippet.

[C#]

//Gets the current record of GridGroup
Record r = this.GridGroupingControl1.Table.CurrentRecord;
Label2.Text = r.ToString();

To achieve the behviour as you expected kindly cut and paste the above code snippet in Button_Click event of our previous sample.

Kindly Let us know if this helps.

Thanks for using Syncfusion products.

Regards,
Gokulkumar.B

Kai Abesser
Replied On January 7, 2007 01:29 PM

I have the same problem !! SelectedRecords or CurrentRecord is allways null !! My Grid is defined with this.GridGroupingControl1.TableOptions.ListBoxSelectionMode = Syncfusion.Web.UI.WebControls.Tools.SelectionMode.MultiExtended;

The rows will be displayed correct. i mark all rows - ok. the i click a button. i the eventhandler of the button i will get the selected rows with
foreach (SelectedRecord sr in this.GridGroupingControl1.Table.SelectedRecords)
...
but SelectedRecords is allway null !!
i have also tried CurrentRecord to get the last marked record, but it´s also null ...

what´s the fault ?
please help !!
regards
Kai

Gokul B [Syncfusion]
Replied On January 8, 2007 11:35 AM

Hi Kai,

Here is the answer for your query

* Before iterate through the collection of SelectedRecords(i.e when GridGroupingControls SelectionMode set as other than "One" or "None") you should get the SelectedRecords manullay in CurrentRecordContextChange event. For reference please have a look at our attached sample.

//Creates the Selected record entry
SelectedRecord selectedrecord = new SelectedRecord(r);

* Then Add the collections of SelectedRecord to SelectedRecordCollection in Button_Click event and iterate through the SelectedRecord collection.For reference please have a look at our attached sample.

//Add the SelectedRecords to SelectedRecordCollection
this.GridGroupingControl1.Table.SelectedRecords.Add(selectedrecord);

Forums_54194.zip

Let us know if this helps.

Thanks for using Syncfusion products.

Regards,
Gokulkumar.B


Kai Abesser
Replied On January 8, 2007 04:59 PM

thanks, that help
regards
Kai

Gokul B [Syncfusion]
Replied On January 8, 2007 06:03 PM

Hi Kai,

we are glad that issue is resolved!

Let us know if you need any other queries.

Thanks for using Syncfusion products.

Regards,
Gokulkumar.B



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.

;