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
890
Force Spin buttons?
posted

Hi,

I have a grid bound to a class.  Some of the class properties are Integer types.  For these, I would like the grid to show spin buttons (as you get when you manually create a column of style "Infragistics.Win.UltraWinGrid.ColumnStyle.IntegerNonNegativeWithSpin"). 

Is there a setting along the lines of "always use spin buttons for cells of type integer", that I could perhaps set in grid_InitializeLayout?

Thanks

Scott

  • 469350
    Verified Answer
    Offline posted

    Hi Scott,  

        No, there's no global setting for this, but you could loop through the band and column inside InitializeLayout and check the DataType on each column and set the Style accordingly.