Home - Forums-.NET - FlyGrid.Net (Windows Forms) - How to make certain cells 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

How to make certain cells readonly
Link Posted: 28-Jun-2006 00:36
Hi,

How to (and is it possible?) make certain cells of the DynamicallyAutoDetectDataTypeColumn readonly depending on the type being edited?

I am able to discard changes to the underlying data and to intercept exceptions but I would like to make cells, for which values editing is not possible, not to enter editing mode at all.

Thank you.
Link Posted: 28-Jun-2006 01:24
You can use for these purposes FlyGrid.IsReadOnly event handler.
If you need to lock certain cells in certain column only, you can override Column.MakeEditorReadOnly method to dynamically lock cells in column.
Link Posted: 28-Jun-2006 01:56
[quote="NineRays"]
If you need to lock certain cells in certain column only, you can override Column.MakeEditorReadOnly method to dynamically lock cells in column.


Great! Works as I wanted.

Thank you.