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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

UnBound CheckBoxColumn Child grid

Thread ID:

Created:

Updated:

Platform:

Replies:

42487 Mar 29,2006 06:26 PM UTC Mar 30,2006 05:02 AM UTC WinForms 1
loading
Tags: GridControl
Chris Wescott
Asked On March 29, 2006 06:26 PM UTC

HI, I have a been trying different way to get around a slow checkbox issue. Now I am using an unbound Checkbox in a heirarchy Grid but I can''t find a way to programmatically set the Child''s checkbox value without modifying the datasource directly. I have implemented the unbound Checkbox according to the KB on how to add an unbound checkbox I found on this site. Currently for the Parent I do this: For I = 0 To GridGroupingControl1.TableControl.Table.Records.Count - 1 MyWellRecord = GridGroupingControl1.TableControl.Table.Records(I) Dim WellRecordIndex As Integer = Me.GridGroupingControl1.Table.PrimaryKeySortedRecords.IndexOf(MyWellRecord) checkboxvalues(WellRecordIndex) = True Next But I can''t find a way to get the PrimaryKeySortedRecords.IndexOf for the Child Table. Please Help This is a major stumbling block us. Regards, Chris Wescott

Administrator [Syncfusion]
Replied On March 30, 2006 05:02 AM UTC

Hi Chris, This can be achieved by using the following code snippet. int RecordIndex =this.gridGroupingControl1.Table.RelatedTables["RelationName"].PrimaryKeySortedRecords.IndexOf(e.Record); Here is the sample which explains how to add unbound checkbox column for a parent and child table. Let us know if this helps. Best regards, Madhan

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

;