Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
How to set the text for child band button
posted

 Hi,

I have a ultragrid with 2 bands ( band[0] and band [1])

In band[1] i have placed a button on a cell. Anybody please let me know that how can i assign a text for that button.

 

Note: 

If that button has placed in band[0]  i can able to assign the text in initialize row event. like this,

 e.Row.Cells[..].Value = "some text";

but i am not sure about the child band buttons

 

Parents
No Data
Reply
  • 1210
    Offline posted
    It's the same. Just check the index of the row's band, like this:Private Sub grd_InitializeRow(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles grd.InitializeRow

    If e.Row.Band.Index = 1 Then

    'This row is in the child band

    End If

    End Sub

    It might also make sense to set this in the datasource, rather than the grid.

    Trausti

Children