- Home
- Forum
- ASP.NET Web Forms (Classic)
- Error selecting Row in GridGroupingWeb
Error selecting Row in GridGroupingWeb
- Jan 3, 2007 04:57 PM UTC
- Jan 8, 2007 11:03 PM UTC
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
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
SIGN IN To post a reply.
7 Replies
GB
Gokul B
Syncfusion Team
January 3, 2007 07:13 PM UTC
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
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
MA
Marco
January 4, 2007 08:28 AM UTC
Thans for replay but I want select and get the value of a grid row but GridGroupingControl1.Table.SelectedRecords is always zero.
thanks.
Marco
thanks.
Marco
GB
Gokul B
Syncfusion Team
January 4, 2007 04:08 PM UTC
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
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
KA
Kai Abesser
January 7, 2007 06:29 PM UTC
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
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
GB
Gokul B
Syncfusion Team
January 8, 2007 04:35 PM UTC
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
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
KA
Kai Abesser
January 8, 2007 09:59 PM UTC
thanks, that help
regards
Kai
regards
Kai
GB
Gokul B
Syncfusion Team
January 8, 2007 11:03 PM UTC
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
we are glad that issue is resolved!
Let us know if you need any other queries.
Thanks for using Syncfusion products.
Regards,
Gokulkumar.B
SIGN IN To post a reply.
- 7 Replies
- 3 Participants
-
MA Marco
- Jan 3, 2007 04:57 PM UTC
- Jan 8, 2007 11:03 PM UTC