Hello,
I'm trying to create 3 level hierarchy band in UltraDataSource, and I cant figure out how to get reference for the third level row.
for the second level row i'm doing the next code:
ultraDataSource1.Rows.SetCount(1, true);
var root = ultraDataSource1.Rows[0];
var firstLevelRows = root.GetChildRows("FIRST_LEVEL_ROW");
firstLevelRows.SetCount(firstLevelRows .Count + 1);
dataRow = firstLevelRows[firstLevelRows.Count - 1];
dataRow["Some Columns"] = SomeDataToInput;
and i have a grandchild band under the " firstLevelRows ", I want to get reference to its ChildRows, but for some reason it says the method is internal.
thanks for the help!
Alex h,
trio-soft
Hello Alex and welcome to our forums!
You could go deeper through the rows with the following code:
ultraGrid1.Rows[0].ChildBands["Child"].Rows[0].ChildBands["GrandChild"].Rows[0]...;
Please do not hesitate to contact me if you need any additional assistance.
Thank you!,
one more question, how can I show header for a band without column, or a hidden column?
Hello alex,
This could be achieved, by adding a Group and using its caption as a band caption. I am not sure why would you like such scenario, so this is the only solution I can think of at the moment. You might want to tell me what is your final goal, so if you are not happy with my solution, I would be able to provide another one. Please let me know when you review my sample.
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.