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.
Syncfusion Feedback

ggc ColIndex have problem with masterdetail child relation

Thread ID:

Created:

Updated:

Platform:

Replies:

71340 Jan 28,2008 06:47 AM Feb 1,2008 12:18 PM Windows Forms 6
loading
Tags: GridControl
harisan
Asked On January 28, 2008 06:47 AM

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?


harisan
Replied On January 28, 2008 09:30 AM

Hi,
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,
Harry


Jeba S [Syncfusion]
Replied On January 30, 2008 08:04 AM

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)
this.gridGroupingControl1.Table.CurrentRecord.EndEdit();
this.gridGroupingControl1.CurrencyManager.EndCurrentEdit();


Kindly let us know if you need any further asssitance.

Best Regards,
Jeba.


harisan
Replied On January 31, 2008 01:53 AM

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,
Harry


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

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\6.1.0.34\Windows\Grid.Grouping.Windows\Samples\2.0\RelationsAndHierarchy\RelatedMasterDetails

Regards,
Jeba.


harisan
Replied On February 1, 2008 07:40 AM

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(col.MappingName)
Console.WriteLine( dv.Table.Columns.Contains(col.MappingName) )
End If
End If
End Sub

Thanks and Regards,
Harry


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

Hi Harry,

Please follow the below forum thread for more details.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=71382

Best regards,
Haneef


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

;