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.

change Table.Engine.SourceListSet in event QueryCellStyleInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

90421 Sep 30,2009 09:31 AM Oct 1,2009 11:02 AM ASP.NET Web Forms (Classic) 2
loading
Tags: GridGroupingControl
Adrien Falconnet
Asked On September 30, 2009 09:31 AM

I want to update the datasource of a GridListControl (which is in a column of a grouping grid) in the event QueryCellStyleInfo.
This is the code below :

e.TableCellIdentity.Table.Engine.SourceListSet[stat.Code].List = selectStatus.ToList();
e.TableCellIdentity.Table.TableDescriptor.Relations[0].Name = "Name";
e.TableCellIdentity.Table.TableDescriptor.Relations[0].MappingName = "Code";
e.TableCellIdentity.Table.TableDescriptor.Relations[0].ChildTableName = stat.Code;

This code doesn't work. I can't update my list in the event QueryCellStyleInfo. Why ??

Adrien Falconnet.

Adrien Falconnet
Replied On September 30, 2009 11:36 AM

Excuse-me, it's the wrong part to post. It's in Wins Forms.

Lingaraj S [Syncfusion]
Replied On October 1, 2009 11:02 AM

Hi Adrien,

Thank you for your interest in Syncfusion products.

The DaatSource, DispalyMember and ValueMember properties are required to create GridListControl cell column in GridGroupingControl as shown below:

********** C# CODE ********
this.gridGroupingControl1.TableDescriptor.Columns["Name"].Appearance.AnyRecordFieldCell.CellType = "GridListControl";
this.gridGroupingControl1.TableDescriptor.Columns["Name"].Appearance.AnyRecordFieldCell.DataSource = GetTable();
this.gridGroupingControl1.TableDescriptor.Columns["Name"].Appearance.AnyRecordFieldCell.DisplayMember = "Name";
this.gridGroupingControl1.TableDescriptor.Columns["Name"].Appearance.AnyRecordFieldCell.ValueMember = "ID";
********** VB CODE *********
Me.gridGroupingControl1.TableDescriptor.Columns("Name").Appearance.AnyRecordFieldCell.CellType = "GridListControl"
Me.gridGroupingControl1.TableDescriptor.Columns("Name").Appearance.AnyRecordFieldCell.DataSource = GetTable()
Me.gridGroupingControl1.TableDescriptor.Columns("Name").Appearance.AnyRecordFieldCell.DisplayMember = "Name"
Me.gridGroupingControl1.TableDescriptor.Columns("Name").Appearance.AnyRecordFieldCell.ValueMember = "ID"


Refer the sample from below link:
http://files.syncfusion.com/support/samples/Grid.Windows/7.3.0.20/GridListControlColumn.zip

Please let me know if you have any queries.

Regards,.
Lingaraj S.

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.

;