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.

MyGrandChildTable

Thread ID:

Created:

Updated:

Platform:

Replies:

124720 Jun 24,2016 11:30 AM Jun 29,2016 01:51 AM Windows Forms 5
loading
Tags: GridGroupingControl
Gregory Pe
Asked On June 24, 2016 11:30 AM

Hi

jak zmienić MyGrandChildTable
Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.CheckBox;


 ((GridTableDescriptor)this.gridGroupingControl1.TableDescriptor.Relations["MyGrandChildTable"].ChildTableDescriptor).Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.CheckBox;
            ((GridTableDescriptor)this.gridGroupingControl1.TableDescriptor.Relations["MyGrandChildTable"].ChildTableDescriptor).Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CheckBoxOptions = new GridCheckBoxCellInfo("Y", "N", "-1", true);//("Y", "N", "", True)
            ((GridTableDescriptor)this.gridGroupingControl1.TableDescriptor.Relations["MyGrandChildTable"].ChildTableDescriptor).Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.Description = "T/N-MyGrandChildTable";
        


Attachment: Related_Master_Details_Demo_9b15fd08.rar

Piruthiviraj Malaimelraj [Syncfusion]
Replied On June 27, 2016 05:07 AM

Hi Grzegorz, 

Thank you for using Syncfusion Products. 

We have analyzed your sample and it seems that you are trying to retrieve the “MyGrandChildTable” from “ParentTable” descriptor. But actually MyGrandChildTable  is added to the Child table (“MyChildTable”). So “MyChildTable” table descriptor has to be get using the GetTableDescriptor method to set the styles for grandchild tables. Please make use of below code, 

Code Snippet 
GridTableDescriptor GrandChildTableDescriptor = this.gridGroupingControl1.GetTableDescriptor("MyChildTable"); 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.CheckBox; 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CheckBoxOptions = new GridCheckBoxCellInfo("Y", "N", "-1", true); 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.Description = "T/N-MyGrandChildTable"; 
 
Sample link 

Regards, 
Piruthiviraj 


Gregory Pe
Replied On June 27, 2016 06:21 AM

Hi Grzegorz, 

Thank you for using Syncfusion Products. 

We have analyzed your sample and it seems that you are trying to retrieve the “MyGrandChildTable” from “ParentTable” descriptor. But actually MyGrandChildTable  is added to the Child table (“MyChildTable”). So “MyChildTable” table descriptor has to be get using the GetTableDescriptor method to set the styles for grandchild tables. Please make use of below code, 

Code Snippet 
GridTableDescriptor GrandChildTableDescriptor = this.gridGroupingControl1.GetTableDescriptor("MyChildTable"); 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.CheckBox; 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CheckBoxOptions = new GridCheckBoxCellInfo("Y", "N", "-1", true); 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.Description = "T/N-MyGrandChildTable"; 
 
Sample link 

Regards, 
Piruthiviraj 



Hi Piruthiviraj

Thank you, but the solution does not change -CheckBox;
GridCellTypeName.CheckBox;

Regards,
Grzegorz

Piruthiviraj Malaimelraj [Syncfusion]
Replied On June 28, 2016 08:35 AM

Hi Grzegorz, 
 
Thank you for your update. 
 
Here we have provided the modified sample which shows that the checkbox is added for all the tables. Please make use of below code. 
 
 
 
Code snippet 
 
GridTableDescriptor GrandChildTableDescriptor = this.gridGroupingControl1.GetTableDescriptor("MyGrandChildTable"); 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.CheckBox; 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CheckBoxOptions = new GridCheckBoxCellInfo("Y", "N", "-1", true); 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.Description = "Sample"; 
 
Sample link 

Please let us know if we missed anything. 

Regards, 
Piruthiviraj 


Gregory Pe
Replied On June 28, 2016 08:53 AM

Hi Grzegorz, 
 
Thank you for your update. 
 
Here we have provided the modified sample which shows that the checkbox is added for all the tables. Please make use of below code. 
 
 
 
Code snippet 
 
GridTableDescriptor GrandChildTableDescriptor = this.gridGroupingControl1.GetTableDescriptor("MyGrandChildTable"); 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.CheckBox; 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.CheckBoxOptions = new GridCheckBoxCellInfo("Y", "N", "-1", true); 
GrandChildTableDescriptor.Columns.FindByMappingName("Name").Appearance.AnyRecordFieldCell.Description = "Sample"; 
 
Sample link 

Please let us know if we missed anything. 

Regards, 
Piruthiviraj 


Hi Piruthiviraj
perfectly
thank you



Piruthiviraj Malaimelraj [Syncfusion]
Replied On June 29, 2016 01:51 AM

Hi Grzegorz, 
 
We are glad to hear from you that the given solution is resolved your problem. Please let us know if you have any other queries. 
 
Regards, 
Piruthiviraj 


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.

;