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
20
Disable moving for a field at on individual field level
posted

According to the doc, the field moving choice can be changed on both grid level and field level. The example in sample feature browser and the doc show how to do it at control level. I couldn't find how to do it on individual field level. I tried many things but cannot find how to set the field layout settings on a field layout. Please help.

Parents
No Data
Reply
  • 28407
    posted

    HI,

     You could wire up the FieldPositionChanging event and cancel it for certain fields.

     here is a code snippet:

     void dpresenter1_FieldPositionChanging(object sender, Infragistics.Windows.DataPresenter.Events.FieldPositionChangingEventArgs e)
            {
                   // throw new NotImplementedException();
                if (e.Field.Name == "Age")
                    e.Cancel = true;

            }

     Sincerely,

     Matt
     DSE

     

Children
No Data