Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Need button to draw even when cell is ReadOnly

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Need button to draw even when cell is ReadOnly
Link Posted: 19-Jul-2006 02:58
I have a column the style of which is EditorStyle.Dropdown.

I am making the column ReadOnly, and overriding the OnKeyPress method. This seems to be the only way to get reliable handling of this method, and be able to process key strokes completely yourself.

However, in this case the dropdown button in the cell does not draw.

Is there a way to force it to draw as usual?
Link Posted: 19-Jul-2006 04:14
Figured it out on my own.

In case anyone is interested:

Instead of overriding ReadOnly property and making it return true, I overrode MakeEditorReadonly.  This still draws the dropdown button, but makes the editor readonly.
Link Posted: 20-Jul-2006 22:50
Additionally - if you using DropDownListColumn you can set DropDownlistColumn.DropDownStyle to DropDownList to disable editing in inplace editor and allow to select value from dropdown list only.