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
955
How to let the cell value not changed together when scrolling the wheel of the mouse?
posted

There is an ultraGrid(named ultraGrid1) and an ultrDropDown(named DDHeadType), the WSHeadTypeNo column's valus is from DDHeadType, now when in the editmode, when I scroll the wheel of the mouse, How to let the data of the WSHeadTypeNo cell in the ultrGrid not to change together?

(below a little code to explain the relation and data)

 this.DDHeadType.DataSource = datatable

 this.ultraGrid1.DisplayLayout.Bands[0].Columns["WSHeadTypeNo"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;

 this.ultraGrid1.DisplayLayout.Bands[0].Columns["WSHeadTypeNo"].ValueList = this.DDHeadType;

 

and I have written below    in the ultraGrid to override it,   

  protected override void OnMouseWheel(MouseEventArgs e)
        {

            HandledMouseEventArgs ee = (HandledMouseEventArgs)e;
            ee.Handled = true;

        }

 

but can not prevent the data changed while scrolling the mouse wheel.

 

How to handle it?

Many  thanks!

 

 

Parents
No Data
Reply Children
No Data