Guessing here ... There may be issues here with TDataset and RecNo. If the dataset supports it the grid does positioning by using TDataset.RecordCount and TDataset.RecNo
The grid calculates the required new RecNo and will probably get it wrong. Put a BreakPoint on the Tdatset.SetRecNo() and see what it tells you. May be an issue in that the dataset is giving the wrong number/position, or is being told that it is in the wrong position during the insert, and hence the grid calcualtes the wrong RecNo. Actually thinking about this more, When in Insert, it is normal for the TDataset to allocated the same record number to the partially inserted record (as post has not been called), as the TDataset cursor position, at the point of insertion (ie this is normally the record above). Hence then the calculation of the wrong record number difference. Perhaps the grid should check the Bookmark state of the record before it attempts to position using record numbers. We are using the Developer Express grids - they don't appear to have this problem!! Myles. -----Original Message----- From: Rohit Gupta [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 March 2003 6:12 p.m. To: Multiple recipients of list delphi Subject: [DUG]: grid - cursor bug When the grid is in insert mode. And the user clicks on a row above, the cursor actually goes to the row above the one clicked on. This happens on using IBO or IB, Ttable or Query. and happens on TDBGrid or TwwDBGrid. It happens even when there is empty space at the bottom of the grid (ie the top row is not being changed). and wait for it... I searched the newsgroups... this was first reported in 1998 - noone even understood what the guy was on about. There was another complaint in 1999 - a few replies - but no help. This means its been there since D1. It drives the users nuts.... help please Regards Rohit ==================================================== ================== CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH (649) 489-2280 FX (649) 489-2290 email [EMAIL PROTECTED] or [EMAIL PROTECTED] ==================================================== ================== --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
