I would like to know how to code an expand button on an UltraWinGrid.

It should be something like this:

Dim gridRow As Infragistics.Win.UltraWinGrid.UltraGridRow
Dim intRow As Integer

For intRow = 0 To UltraGrid1.Rows.Count - 1
gridRow = UltraGrid1.Rows(intRow)
gridRow.Expanded = True
Next intRow

I have four levels on my grid, and I want it to expand just one level
at a time for each click of the expand button.

The above only works for the first level as the count never changes.

Any help would be appreciated.

Thanks,
disaia@verizon.net

Re: Infragistics UltraWinGrid Expand by Alvin

Alvin
Tue Apr 26 21:31:37 CDT 2005

infragistics related help can be found on the infragistics support site

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"moondog" <disaia@verizon.net> wrote in message
news:1114472376.973924.237910@z14g2000cwz.googlegroups.com...
>I would like to know how to code an expand button on an UltraWinGrid.
>
> It should be something like this:
>
> Dim gridRow As Infragistics.Win.UltraWinGrid.UltraGridRow
> Dim intRow As Integer
>
> For intRow = 0 To UltraGrid1.Rows.Count - 1
> gridRow = UltraGrid1.Rows(intRow)
> gridRow.Expanded = True
> Next intRow
>
> I have four levels on my grid, and I want it to expand just one level
> at a time for each click of the expand button.
>
> The above only works for the first level as the count never changes.
>
> Any help would be appreciated.
>
> Thanks,
> disaia@verizon.net
>