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
105
Trackbar with WinGrid
posted

Hi,

I am embedding an UltraTrackbar in a WinGrid control and everything works fine except for the fact that I'm not able to set certain properties on the Trackbar control itself. The three properties I would like to set are TrackClickAction, SmallChange and LargeChage. The changes I try to apply, either programmatically or in the properties window are ignored.

Thanks!

Steve

Parents
  • 12480
    Verified Answer
    Offline posted

    Hi Steve,

    You can make these changes by applying them to the editor instead of the control. Add the following code to your project, anywhere after setting the editor:


    Infragistics.Win.TrackBarEditor trackBarEditor = ultraGrid1.DisplayLayout.Bands[0].Columns["Track"].Editor as Infragistics.Win.TrackBarEditor;
    trackBarEditor.TrackClickAction = TrackClickAction.UseSmallChange;
    trackBarEditor.SmallChange = 2;
    trackBarEditor.LargeChange = 10;

    Please let me know if you have any questions.

Reply Children
No Data