OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Jim Short on July 31, 2015, 04:16:45 PM

Title: Datagrid IsReadonly
Post by: Jim Short on July 31, 2015, 04:16:45 PM
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?
Title: Re: Datagrid IsReadonly
Post by: Fred Tomke on August 02, 2015, 12:57:58 PM
Hi, Jim, I always solve this by either SetCellStyle = 0 or by checking BeginCellEdit and Cancelling immediately.
Hope that helps a bit.
Regards, Fred
Title: Re: Datagrid IsReadonly
Post by: Jim Short on August 03, 2015, 12:28:35 PM
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