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

How to set the readonly property to the record which has PlusMinusCell(ie parent record)

Thread ID:

Created:

Updated:

Platform:

Replies:

118113 Feb 2,2015 12:36 PM UTC Feb 3,2015 06:45 AM UTC Windows Forms 1
loading
Tags: GridGroupingControl
Supriya Varne
Asked On February 2, 2015 12:36 PM UTC

Hi,
I am using Gridgrouping control.
I have Parent-Child Relationship in the control.
I want to change values in cell of  rows values in child table.
for that TableControlCurrentCellEditingComplete is fired 
when grid is displayed i want set the readonly property to the  record which has PlusMinusCell(ie parent record)


Thank you and Regards,
Supriya

Neelakandan Kannan [Syncfusion]
Replied On February 3, 2015 06:45 AM UTC

Hi Supriya,

 

Thank you for your interest in Syncfusion products.

 

If you want to set the ReadOnly property to the ParentRecords(i.e. Records which has Plus/Minus), you can use QueryCellStyleInfo event. Please make use of below code,

 

Code Snippet:

 Private Sub gridGroupingControl1_QueryCellStyleInfo(ByVal sender As ObjectByVal As GridTableCellStyleInfoEventArgs)
        
Dim rec As Record e.TableCellIdentity.DisplayElement.GetRecord
        
If ((Not (rec) Is Nothing)  _
                    
AndAlso (rec.HasNestedTables  _
                    
AndAlso ((e.TableCellIdentity.TableCellType <> GridTableCellType.EmptyCell)  _
                    
AndAlso ((e.TableCellIdentity.TableCellType <> GridTableCellType.NestedTableIndentCell)  _
                    
AndAlso (e.TableCellIdentity.TableCellType <> GridTableCellType.NestedTableRowHeaderCell))))) Then
            
e.Style.ReadOnly = true
        End If
    End Sub

 

Please let me know if you have any concerns.

 

Regards,

Neelakandan


Attachment: Sample_ReadOnly_Parent_Record_1219970a.zip

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

;