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
755
How to Show a button only on some rows
posted

Hi

whats the best way to show only in some rows a button ina a grid column,.

When setting the columnstyle to 

Infragistics.Win.UltraWinGrid.ColumnStyle.Button 
dann on each row i can see a button

to remove the button on the rows which shouldn't have one i was only sucessfull in hiding the button. but that looks strange because the place of the hidden column doesn't have the row background (s. attached image). Instead theres a grey rectangles. (s. image)


I also tried to not set the appearance of the column but change Style to button when the row is prepared but then i never see button.
Does somebody have any advice / example which has buttons only on some rows?
  • 23930
    Offline posted

    Hello,

    I am just checking about the progress of you issue. If you have any additional questions, I will be glad to help you.

    Thank you for using Infragistics Components.

  • 469350
    Suggested Answer
    Offline posted

    Set the Style on the cell, not the column. The InitializeRow event is usually a good place to do this.