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

The structure of the syncfusion grid Grouping control is not changing!

Thread ID:

Created:

Updated:

Platform:

Replies:

73433 May 6,2008 11:55 PM May 13,2008 08:24 AM Windows Forms 3
loading
Tags: Grouping
Ramana
Asked On May 6, 2008 11:55 PM

Hi,

I am assigning a DATASource table1 with some structure to the syncfusion grid Grouping control for the first time,next when I'm assgining a DATASource table2 with different structure the grid structure is not changing.it is Showing table1 Structure only.

Please any one help if they can!


Thanks & regards,
Ramana.


Yavanaarasi G [Syncfusion]
Replied On May 8, 2008 09:24 AM

Hi Ramana,

I am not able to reproduce the issue that you mentioned here. I have created a simple Gridgrouping sample with two datatable. During the page load the first table is binded. Then in button click I have binded the next tabel. Here it works.

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com//samples/Grid.Windows/F-73433/main.htm

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample and send us the modified sample so that we could sort out the cause of the issue and provide you a solution?


Regards,
G.Yavana



Ramana
Replied On May 10, 2008 07:02 AM


For GridGroupingcontrol :
In the Form I am retrieving The data from database to dataSet, then i am assigning the data to grid like:
gridgroupingcontrol1.DataSource=ds.Tables[0];
here I am disabling the some fields like
gridgropuingcontrol1.visiblecolumns.Remove("Columnname");

after showing the form
I am clicking the Button in this clickevent

once again I am retrieve the data from different table to dataset
then i am assigning like :
gridgroupingcontrol1.DataSource=ds.Tables[0];
in this
the columns are showing the first table columns only.




SubhaSheela R [Syncfusion]
Replied On May 13, 2008 08:24 AM

Hi Ramana,

Thanks for your update.

If you trying to rebind a datasource, you have to reset the DataSource before rebinding it. You can follow the below code snippets for rebinding a DataSource in GridGroupingControl.

Below is the code snippet:


this.gridGroupingControl1.DataSource = null;
this.gridGroupingControl1.DataMember = null;
this.gridGroupingControl1.ResetTableDescriptor();
this.gridGroupingControl1.TableDescriptor.Relations.Clear();
this.gridGroupingControl1.DataSource = ds.Tables[1];
this.gridGroupingControl1.Reinitialize();
this.gridGroupingControl1.Refresh();


Here is the sample:

http://websamples.syncfusion.com/samples/Grid.Windows/Grid_WF_GGCRebindingDataTable_F73433FU1/main.htm

Please have a look into the above sample and let me know if you need any further assistance.

Regards,
Subhasheela R



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

;