Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
Hierarchical Grid doesn't show +/-
posted

Hi,

I am manually creating the relationship in a hierarchical grid (see below).  For Infragistics 6.2, it will not show the +/- in the grid.  Below is an excerpt of my code.  I am still using framework1.1, so cannot upgrade to the latest infragistics yet.  This worked in an earlier version though.  If I do an expand all, I can see the 2nd level.  But the grid will not show me the expand/compress buttons.  Any help will be much appreciated. //execute stored procs to return data; this basically returns 2 datasets (level1 & level2)
OracleDataAdapter myDataAdapter = new OracleDataAdapter();
myDataAdapter.SelectCommand = cmd;
DataSet ds =
new DataSet();
ds.Tables.Add ("level1");
ds.EnforceConstraints =
false;
ds.Tables["level1"].BeginLoadData();
myDataAdapter.Fill(ds.Tables["level1"]);
ds.Tables["level1"].EndLoadData();

 

// Fill Level 2 tasks
cmd.Parameters["p_lvl"].Value = 1;
myDataAdapter.SelectCommand = cmd;
ds.Tables.Add ("level2");
ds.EnforceConstraints =
false;
ds.Tables["level2"].BeginLoadData();
myDataAdapter.Fill(ds.Tables["level2"]);
ds.Tables["level2"].EndLoadData();

//create relations for hierarchy
ds.Relations.Add(ds.Tables["level1"].Columns ["LVL1"], ds.Tables["level2"].Columns ["LVL1"]);
UltraWebGrid1.Rows.Clear();
UltraWebGrid1.Columns.Clear ();
UltraWebGrid1.DisplayLayout.ViewType = ViewType.Hierarchical;
UltraWebGrid1.DataSource = ds;
UltraWebGrid1.DataMember = "level1";
UltraWebGrid1.DataBind();

Parents
No Data
Reply
  • 405
    posted

    I resolved problem #1.  Issue is that the logic contained this statement:

    UltraWebGrid1.DisplayLayout.IndentationDefault = 0;

    I removed this and the plus/minus icons show up!

Children
No Data