Search code examples
infragisticsultrawingrid

Infragistics UltraGrid (9.2) count Band after DataSource is set


In an inherited UltraGrid I would like know how many Bands the grid contains after I set a new value on base.DataSource. How do I find that count?

Thanks

-a-

/*****Added screendump*****/

(code is not my property so I've scrambled away some possible trade secrets)

enter image description here


Solution

  • After setting the new dataSource object to the DataSource property of the UltraGrid you could verify the count like:

    ultraGrid1.DisplayLayout.Bands.Count

    Hope this is what you are looking for.