Hello!

Hello!

My question, as most times, is intriguing and weird :D

BDS2K6 + Win7

So, let's say I have a CDS called CDS1 and a clone called CLN1.
CDS1 is attached to a DevExpress grid and it has a  flag field which becomes 1 when it's checked, 0 otherwise.

CLN1 issues a CloneCursor call as soon as CDS1 gets opened.

When I click on the checkbox in the grid, the clone is not updated.

Any ideas what could be wrong here?

ImmediatePost for the column is set to true.

A

Comments

  1. It is better to put a timer or on idle event and show somewhere the CDS1.State and CDS1.FieldByName('YourFlagField').AsInteger to see what's happening after you click the checkbox.

    CDS1.State should be <> dsEdit and Flag to match your checkbox. In this case reading the flag from CLN1 should be like CDS1 flag.

    ReplyDelete
  2. After you check the checkbox, do you select another cell/row? If not, does it update the field then?

    I seem to recall my colleague saying ImmediatePost didn't work as he expected it to... hazy memories though.

    ReplyDelete
  3. Is the SyncMode of the Grid's DataController set to TRUE? The DataController caches data from the external source to provide all the extensive filtering and sorting features, so unless SyncMode is true the data of the original DataSet are not updated, as far as I recall.

    ReplyDelete
  4. Jeroen Wiert Pluimers​ sorry to be daft, but what does that actually mean? Seen you do it a couple of times...

    ReplyDelete
  5. Dany Marmur​ "subscribe", for when you want to get notified of other replies, but don't have anything to contribute with at that point.

    ReplyDelete
  6. Asbjørn, is that a function in g+ or just some thing you do and follow up "manually". Oh, now I see. Just to get notifications. Brilliant. Thanks.

    ReplyDelete

Post a Comment