Datagrid IsReadonly

Started by Jim Short, July 31, 2015, 04:16:45 PM

Previous topic - Next topic

Jim Short

The WPF DataGrid has an IsReadOnly property that you can set to True to ensure that users cannot edit your DataGrid's cells.
Does MFC grid lack this?
Jim Short

Fred Tomke

Hi, Jim, I always solve this by either SetCellStyle = 0 or by checking BeginCellEdit and Cancelling immediately.
Hope that helps a bit.
Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Jim Short

Thanks Fred.

I looked at "0=No style set" but did not try it to see that it was effective as read only also.

Cheers,
Jim
Jim Short