Hello,
I want to have multiple bands in ultrawingrid but all binded to one table. how can i achieve this kind of hierearchy?
Hello Rooma,
Maybe one possible way could be if you are using DataSet, DataTable and parent - child relation between two of the columns. For example:
DataSet ds = new DataSet();
DataTable dt = new DataTable();
dt.Columns.Add("iIsn", typeof(int));
dt.Columns.Add("iPIsn", typeof(int));
dt.Columns.Add("Name", typeof(string));
DataRelation dr = new DataRelation("MY", dt.Columns["iIsn"], dt.Columns["iPIsn"],false);
ds.Relations.Add(dr);
Using this approach (with self related table) you could met endless loop of hierarchy, so if you want to prevent endless loop of hierachy, you could used MaxBandDepth property. By this way you could set the deep of your hierarchy or other possible approach could be if you hide your root node (for more details please take a look at the attached sample)
Let me know if you have any questions.
Regards
hi, i have a similar question but having multiple bands bound to one BindingList<>. all my data is coming from one bindinglist/source but my bands are essentially* groupings of the underlying data. so should i create seperate lists for each level that i want to have a band for? how do i tie it all together without the dataset and relation classes.
any help is appreciated.
thanks