GDBG - last column disappears upon adding a relation

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?

1 Reply

HA haneefm Syncfusion Team April 2, 2007 09:27 PM UTC

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

Loader.
Up arrow icon