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
30
CellButtonStyle per row
posted

Hello,

I'm using an UltraWebGrid with a column with buttons. The fact is that in my application, the buttons should not appears for all rows. It depends of the content of another cell in another column of the grid.

The problem is that the CellButtonStyle is defined in the grid initialization, and put for all the column.

In the row initialization, I tried that :

            With e.Row.Cells.FromKey(ColumnKeyProperty).Style
                .Width = Unit.Percentage(100)
                .Height = Unit.Percentage(100)
                .Font.Size = FontUnit.XXSmall
                .BackgroundImage = ResolveUrl(Pictures.GridConfig)
                .BackColor = Drawing.Color.White
                .Cursor = Infragistics.WebUI.Shared.Cursors.Hand
                .HorizontalAlign = HorizontalAlign.Center
                .CustomRules = ButtonCustomRules
                .BorderWidth = New Unit(0)

            End With

But it only works for the cell's style, and doesn't work for the button. And if I use the same but on e.Row.Cells.FromKey(ColumnKeyProperty).Style.Column.CellButtonStyle, it applies the values on all the column...

Have somebody an idea to help me ?

Thanks in advance.

Parents
No Data
Reply Children
No Data