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.

GGC : How to change readonly property of a childtable cell depending on another cell value?

Thread ID:

Created:

Updated:

Platform:

Replies:

38838 Dec 20,2005 05:15 AM Jan 28,2018 11:26 PM Windows Forms 5
loading
Tags: Grouping
Anupama
Asked On December 20, 2005 05:15 AM

I have created a GGC containing a master table and its related detail table. The master table contains "ApprovalState", "CompletedDate", "Outcome". The detail table contains "Role", "Outcome" and "Notes" to name a few fields. I have made all the cells in the GGC readonly=true by default. I need to now set the readonly property of the Outcome and Notes cells of *certain* child (detail) table cells to false, depending upon the value of the "Role" cell. More specifically, if the "Role" field of a child row is "Underwriter" I need to enable him to enter values in the "Outcome" and "Notes" fields corresponding to his row only. All other rows and fields must be uneditable for him. How can I achieve this?

Administrator [Syncfusion]
Replied On December 21, 2005 12:32 AM

Hi Anupama, By handling the QueryCellStyleInfo event, the styles of individual cells can be changed. See the attached sample for details. ConditionallySettingRowStyle.zip Regards, Leo.

Administrator [Syncfusion]
Replied On December 21, 2005 01:13 AM

Thanks! This is exactly what I was looking for. >Hi Anupama, > >By handling the QueryCellStyleInfo event, the styles of individual cells can be changed. See the attached sample for details. > >ConditionallySettingRowStyle.zip > > >Regards, >Leo.

Anupama
Replied On December 21, 2005 01:14 AM

Thanks! This is exactly what I was looking for. >Hi Anupama, > >By handling the QueryCellStyleInfo event, the styles of individual cells can be changed. See the attached sample for details. > >ConditionallySettingRowStyle.zip > > >Regards, >Leo.

D E
Replied On January 28, 2018 08:39 AM

Thank you

Arulpriya Ramalingam [Syncfusion]
Replied On January 28, 2018 11:26 PM

Hi Denis, 
 
Thanks for your update. 

We are glad to hear that the provided solution was resolved your scenario.   
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 


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.

;