Unbound checkbox column in child table

Hello…. I have added an unbound checkbox column to the main table and also to the child table in a gridgrouping control. Public Sub unboundField_QueryValue(ByVal sender As Object, ByVal e As FieldValueEventArgs) Dim RecordIndex As Integer = Me.GridGroupingControl1.Table.PrimaryKeySortedRecords.IndexOf(e.Record) The checkbox column works fine for the main table .However,For the child table, I am not able to do the same. Public Sub unboundField_QueryValue1(ByVal sender As Object, ByVal e As FieldValueEventArgs) Dim RecordIndexchild As Integer = Me.GridGroupingControl1.Table.RelatedTables(0).PrimaryKeySortedRecords.IndexOf(e.Record) What should RecordIndexchild be assigned to to get the proper row index? Please inform asap Thanx

3 Replies

AD Administrator Syncfusion Team May 7, 2006 12:27 AM UTC

Hi Cheryl, Please refer this forum thread: http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=42487 Best regards, Jay


CH cheryl May 9, 2006 10:07 AM UTC

hi Jay ....... the example u sent me was for a datatable .....im using 2 tables from a datasource and filling the adapter ......so kindly help for the same as i have tried evrything but PrimaryKeySorted Records is null for the child table ..... thanx >Hi Cheryl, >Please refer this forum thread: > >http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=42487 > >Best regards, >Jay


AD Administrator Syncfusion Team May 9, 2006 10:13 AM UTC

Hi Cheryl, Please refer this forum thread: http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=43936 Best Regards, Haneef

Loader.
Up arrow icon