I have one grid that has two bands.
How to determine which band is being selected or band row being selected
Basically, I want to write some logic that saids
If( Band[1] Is active or any row is selected)
{"do nothing, at the moment I careless about band[1], it there for visual at the moment."}
else if (Band[0] is selected or row is selected)
{"get data"}
For parent row I am using logic below
parentRowInfo = (DataRowView
)ultraGrid1.ActiveRow.ParentRow.ListObject;
For the child row i am using logic below
DataRowView childRowInfo = (DataRowView)ultraGrid1.ActiveRow.ChildBands.FirstRow.ListObject;
A Band represents the entire band - that is, all of the rows at a particular level. So a Band doesn't have a parent row. The band represents all of the child rows under all parent rows.
To get a parent row, you need a child row. The row has a ParentRow property on it.
I am going to try this below
DataRowView
Actually it works. So nevermind
Im basically asking how to get the parent row information of child row band[1]?
Thanks you are the greatest. One more thing that I caught
I am doing this below. Thanks.
if (ultraGrid1.ActiveRow.Band.Index != 1)
{
}
Question . If I click on Band[1]. How to get the Band[1] related values from Band[0]. If you know what I mean. Band[1] is related from Band[0].
QuicK Example:
Color ID : Color:
-- Band[0] Row: 1 Red
Color ID : Color Notes:
----------Band[1] Row: 1 I love Red
So if I click on Band[1] Row Color ID 1, How do I get the Band[0] Row 1 Information?
Not for sure uf you understand what Im trying to accomplish.