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
1715
Changing appearance of editable fields
posted

Hi,

A column in my grid is editable based on runtime values. Given the default settings, there is no easy way to really see whether a column is in editable. We do not know this until we click on the cell and it either goes into editable mode or not. The style for the column is ColumnStyle.Edit. Is there a way to  make the editable column cell appear to contain a text entry box? Any other techniques?

Thanks
-Szymon

  • 1715
    Verified Answer
    posted

    I did not find a direct property to change. However, I used the creation filter techinque. In the AfterCreateChildElements implementation I checked if the parent is an EditorWithTextUIElement. If it is, I made sure I am looking at the element for my relevant column and made sure the cell is editable. If so, I resyled the cell so that the BackColor is completely white and resized the EditorWithTextUIElement to be a white box inside the cell. Now it looks like an editable entry box that fills a percentage of the entire cell.