Dear all
My Scenerio is:
There are two Conditions applied:
On the selected index change event of a combo I want to add or remove cells in the WinGrid.
For Example if the value of the combo box is "A".I want to show four members.
and
if the value of the combo box is "B".I want to show only one member.
The important point in this scenerio is i want to implement it in band 1 not band 0.
How can I achieve it???
Please help me Its urgent..........
There's no reason to loop through the rows. You can access the child band columns like so:
this.ultraGrid1.DisplayLayout.Bands[key of child band].Columns
You can do like this:
for (int i = 0; i < this.ultraGrid1.DisplayLayout.Rows.Count; i++) { for (int j = 0; j < this.ultraGrid1.DisplayLayout.Rows[i].ChildBands[0].Band.Columns.Count; j++) {
//Add your filter here this.ultraGrid1.DisplayLayout.Rows[i].ChildBands[0].Band.Columns[j].Hidden = true; } }
Yes the combo box is outside the grid.
And the change, will apply to all child bands.
Do you want to base this off a selection change of a combo that is in Band 0 or a combo that is outside of the grid?If records on band 1 should change, does it apply to all child bands or it should affect a single child band only?