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 Object, ByVal e 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