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.

Problem with PrimaryKeySortedRecords

Thread ID:

Created:

Updated:

Platform:

Replies:

43936 May 9,2006 04:58 AM May 9,2006 07:11 AM Windows Forms 3
loading
Tags: GridControl
cheryl
Asked On May 9, 2006 04:58 AM

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) when i check the code i realied that there are no values returned for PrimaryKeySortedRecords? is there a problem with relations? Please inform asap Thanx

Administrator [Syncfusion]
Replied On May 9, 2006 06:10 AM

Hi Cheryl, Could you try this code to find the index of the record.Here is a code snippet. Dim RecordIndexchild As Integer = e.Record.ParentTable.PrimaryKeySortedRecords.IndexOf(e.Record) Please let me know if this helps. Best Regards, Haneef

cheryl
Replied On May 9, 2006 06:14 AM

Hello Hansel thanx for the quick response...... bur the problem is the same recordindexchild returns -1 .... according to me , primarykeysortedrecords is null when i try '' MsgBox(Me.GridGroupingControl1.Table.RelatedTables("ParentToChild").PrimaryKeySortedRecords.Count) >Hi Cheryl, > >Could you try this code to find the index of the record.Here is a code snippet. > >Dim RecordIndexchild As Integer = e.Record.ParentTable.PrimaryKeySortedRecords.IndexOf(e.Record) > >Please let me know if this helps. >Best Regards, >Haneef

Administrator [Syncfusion]
Replied On May 9, 2006 07:11 AM

Hi Cheryl, I have tested this issue by creating a sample using GridGroupingcontrol in v.3.3 and then again tested by upgrading to 4.1. I was not able to reproduce the issue.If you can provide more information, we can try to suggest some solution. Here is a sample. http://www.syncfusion.com/Support/user/uploads/UnboundCheckboxGridGroup_ee290e7a.zip Could you please run this at your end and let me know how it goes? Thanks for choosing Syncfusion Products. Best Regards, Haneef Notes: Before run the attached sample, you need to change the connection string.

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.

;