Hi,
//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();
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!
Ok, I am also having a problem with my OutlookGroupBy grid. Does anyone know of a known problem with Infragistics not properly displaying the outlookgroupby or hierarchical grid in the parent/child relationship? Below is a quick example.
My query returns the following results:
type descemployee name1employee name2employee name3customer cust1customer cust2customer cust3
my c# code is as follows:UltraWebGrid1.DataBind();UltraWebGrid1.DisplayLayout.ViewType = ViewType.OutlookGroupBy;UltraWebGrid1.Columns[0].IsGroupByColumn = true;UltraWebGrid1.Columns[0].SortIndicator=SortIndicator.Descending;UltraWebGrid1.Rows.Sort(true);UltraWebGrid1.ExpandAll(true);UltraWebGrid1.Columns[0].Hidden=true;
Grid results show only: name1name2name3cust1cust2cust3
Grid should show this:employee name1 name2 name3customer cust1 cust2 cust3
if I don't hide column 0, I only get:employeecustomer
Can anyone please help???