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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dyanamically adding datasource in a GridGrouping control

Thread ID:





55995 Feb 7,2007 10:39 PM UTC Feb 8,2007 12:49 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Administrator [Syncfusion]
Asked On February 7, 2007 10:39 PM UTC


I am using GridGrouping control on a web page (added at design time). I get data in a datatable based on user selection. Add this datatable as datasource to the GridGrouping control dynamically in the code( I can't add the datasource in the Page_init method since I don't have datatable with data until the user selects the data).
In Page_load, I added to this.GridGroupAlerts.Visible = false; so that the Grid doesn't get loaded.

In another function, I do this,

this.GridGroupAlerts.Visible = true;
GridGroupAlerts.DataSource = AllAlertData;
I specified all the fields(datatable) to the GridGrouping control at design time as part of the tabledescriptor columns.

For whatever reason, I don't see any data populated in the Grid.

Could you provide an example where you don't have to add the datasource as part of the page_init. and also be able to add the fields as part of design time table descriptor.


Gokul B [Syncfusion]
Replied On February 8, 2007 12:49 AM UTC

Hi Rekha,

Attached is the sample which illustrates the toggling datasource dynamically for GridGroupingControl based on user selection.


In our sample, we bind the grid based on user selection from the DropDownlistBox. We acheived this with the help of callback panel.

Let us know if need more help.

Thanks for using Syncfusion products.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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