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 falseit 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 RajendranCCH - WK Torrance CA
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.
Thanks much Alex for your alacrity, it worked.