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.
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