Stephen,
The other way that I can think of for doing this would be to apply a filter to the column and get the count of the number of rows remaining. You would also likely want to suspend painting of the grid while you do this.
this.ultraGrid1.BeginUpdate();this.ultraGrid1.DisplayLayout.Bands[0].ColumnFilters["Col 1"].FilterConditions.Add(FilterComparisionOperator.Equals, true);int count = this.ultraGrid1.Rows.GetFilteredInNonGroupByRows().Length;this.ultraGrid1.DisplayLayout.Bands[0].ColumnFilters["Col 1"].ClearFilterConditions();this.ultraGrid1.EndUpdate();
-Matt
I have never used summaries before but do you know if using summaries would do me any good?
I'm not sure if you could do this with summaries, though my guess would be that it would have to be done with a formula summary with an UltraCalcManager. I don't know if there's a way to count the number of cells with a certain condition using a formula, though.
Don't worry about it your solution worked really well,
Thanks for all your help
Stephen