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

ggc ColIndex have problem with masterdetail child relation

Thread ID:





71340 Jan 28,2008 11:47 AM UTC Feb 1,2008 05:18 PM UTC WinForms 6
Tags: GridControl
Asked On January 28, 2008 11:47 AM UTC

I tried to validate user input into ggc by refer the ColIndex with dataset ordinal value, the problem is that ColIndex did not in consecutive order if there is masterdetail type childtable relation. Pls advise how to fix the problem and make the ColIndex of parent table didn't mix with child table?

Replied On January 28, 2008 02:30 PM UTC

I just resolved it by : ColIndexToField

There is another important issue that I don't know how to deal with. After I updated any changes in particular row and call DS.AcceptChanges then I edit the same row and update it again. But this time I got DBconcurrency error. How to make the data in ggc synchronized with the recent updated dataset and avoid the error?

Thanks and Regards,

Jeba S [Syncfusion]
Replied On January 30, 2008 01:04 PM UTC

Hi Harisan,

Thank you for your interest in Syncfusion Products.

Please call the EndEdit() method and see it helps to avoid the error.

if(this.gridGroupingControl1.Table.CurrentRecord != null)

Kindly let us know if you need any further asssitance.

Best Regards,

Replied On January 31, 2008 06:53 AM UTC

Hello Jeba,

Thanks for your assist.
I tried it but it still got the same error.
Do I need to write BeginInit somewhere in the module? I need further assist of this matter to resolve it.

Best Regards,

Jeba S [Syncfusion]
Replied On January 31, 2008 09:52 AM UTC

Hi Harry,

Thank you for your update.

Could you please try to reproduce the error in the following browser sample with MasterDetail relation? This will help us to analyze the issue in depth and provide you a solution. Or kindly provide a sample just to show the issue.

{Installation Drive}\Documents and Settings\{Username}\My Documents\Syncfusion\EssentialStudio\\Windows\Grid.Grouping.Windows\Samples\2.0\RelationsAndHierarchy\RelatedMasterDetails


Replied On February 1, 2008 12:40 PM UTC

Hello Jeba,

I got InvalidCastException error on this line:
Dim dv As System.Data.DataView = cm.List

Unable to cast object of type 'System.Windows.Forms.BindingSource' to type 'System.Data.DataView

How to make this work out?

This is the code to retrieve HeaderText from Haneef:

Private Sub gridGroupingControl1_TableControlCellClick(ByVal sender As Object, ByVal e As GridTableControlCellClickEventArgs)
Dim cm As CurrencyManager = e.TableControl.Table.GetCurrencyManager()
Dim dv As System.Data.DataView = cm.List

If Not dv Is Nothing Then
Dim col As GridColumnDescriptor = e.TableControl.Table.GetColumnDescriptorAt(e.Inner.RowIndex,e.Inner.ColIndex)
If Not col Is Nothing Then
Console.WriteLine( dv.Table.Columns.Contains(col.MappingName) )
End If
End If
End Sub

Thanks and Regards,

haneefm [Syncfusion]
Replied On February 1, 2008 05:18 PM UTC

Hi Harry,

Please follow the below forum thread for more details.

Best regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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