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.

GDBG - last column disappears upon adding a relation

Thread ID:

Created:

Updated:

Platform:

Replies:

58933 Apr 1,2007 03:29 AM Apr 2,2007 05:27 PM Windows Forms 1
loading
Tags: GridControl
tzvika
Asked On April 1, 2007 03:29 AM

hi,

I have a GDBG binded to a data table with x column. I added a relation to the grid with the following code:



GridDataBoundGrid.ListBoxSelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
GridDataBoundGrid.EnableOleDropTarget();
GridDataBoundGrid.ColorHeirarchy = false;

string [] level_1_Columns = new string[] {
"col1",
"col2",
"col3",
"col4",
"col5"
};

GridDataBoundGrid.BeginUpdate();

GridHierarchyLevel RootLevel = GridDataBoundGrid.Binder.RootHierarchyLevel;
RootLevel.RowStyle.BackColor = Color.Lavender;

GridHierarchyLevel ghl = GridDataBoundGrid.Binder.AddRelation("relation");


if(ghl !=null)
{
ghl.RowStyle.BackColor = Color.AliceBlue;

// assign mapping names
ghl.LayoutColumns(level_1_Columns);
}

GridDataBoundGrid.Binder.InitializeColumns();
GridDataBoundGrid.EndUpdate();

for some reason the last column of the main table (level 0) disappears.
what am i doing wrong?

haneefm [Syncfusion]
Replied On April 2, 2007 05:27 PM

Hi David,

I am really sorry to inform you that I am not able to reproduce the issue in Essential version 4.4.0.51 with .Net 1.1 & 2.0. Please let me know What version of the Essential Grid and .Net framework are you using?.

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.

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.

;