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
805
Grid editor changes based on the value in the field
posted

Hi,
   I have a Grid to which a collection is bound with, in that collection,
I have a property called IsApplicable, when this value is true then in a particular field say Department
I must display a drop down or it should be of style combo Editor, else if the value is false
it should be text editor. How to go about this?

Basically want to know based on the value bound to a field in the grid, how to make the editor style change?
Thanks much in advance.

Regards,
Balaji Rajendran
CCH - WK Torrance CA

Parents
  • 69686
    Verified Answer
    posted

    Hello Balaji,

    If you want to change the editor type per record, you would have to use the InitializeRecord event. From there, you can check the values in the initialized record (by casting it to DataRecord) and change the type of the editor inside a particular cell. You can do this with the Cell.EditorType or Cell.EditorStyle properties.

Reply Children
No Data