Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread The world needs more ReadOnly :-)
Fri, May 4 2018 5:22 PMPermanent Link

Ralf Mimoun

Hi all (or Tim),

to make sure that I don't mess with the wrong data, I'd like to make datasets read-only. Unfortunately there is no TDataSet property to do that. Ok, I could loop through the columns by code. Clumsy, but possible, and I have add exceptions explicitely in that code. But then I have to remove all TDataColumn.ReadOnly flags before I read the dataset and set them again because .LoadRows can't set read-only columns.

In short: would it be possible to add a TDataSet.ReadOnly in a future version, and to ignore TDataColumn.ReadOnly flags in .LoadRows?
Wed, May 9 2018 3:08 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ralf,

<< In short: would it be possible to add a TDataSet.ReadOnly in a future version, and to ignore TDataColumn.ReadOnly flags in .LoadRows? >>

Just setting this property to False for the dataset should give you what you need:

https://www.elevatesoft.com/manual?action=viewprop&id=ewb2&comp=TDataSet&prop=AutoEdit

Tim Young
Elevate Software
www.elevatesoft.com
Image