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
585
How can I remove the scale of TrackBar in cells of ColumnStyle.TrackBar?
posted

Hi~,

I'm using ColumnStyle.TrackBar Column in my grid, and I want to remove the scale of TrackBar.

Please let me know if it is possible.

Parents
  • 53790
    Suggested Answer
    posted

    Hello hedgehog0213,

    There are different approaches to solve this task.

    Option 1: You could handle ultraGrid2_InitializeLayout() event of your UltraGrid and set the property ViewStyle. For example:

    private void ultraGrid2_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)

      {

       ((TrackBarEditor)e.Layout.Bands[0].Columns["C"].Editor).ViewStyle = TrackBarViewStyle.Vista;

       }

    Please take a look at the attached screenshot to see different styles

    Option 2: You could use the properties:

    ((TrackBarEditor)e.Layout.Bands[0].Columns["C"].Editor).TickmarkSettingsMajor.Visible = DefaultableBoolean.False;

    ((TrackBarEditor)e.Layout.Bands[0].Columns["C"].Editor).TickmarkSettingsMinor.Visible = DefaultableBoolean.False;

    Option 3: You could use UltraTrackBar control like a EditorComponent into your grid`s column

    Please let me know if you have  any questions.

    Regards

     

Reply Children