TDBAdvStringGrid seems to disconnect from datasource

From: Vilis (vnams_at_nsac.ns.ca)
Date: 07/14/04


Date: 14 Jul 2004 09:21:52 -0700

Has anyone used TDBAdvStringGrid? I am having problems with the grid
seeming to disconnect from the underlying dataset. After editing, I
process the data using OnChange events of the dataset fields. After
some of the manipulations, the selection on the grid screen is not the
same as the RecNo of the dataset. If I them move up and down rows,
both the grid and the Table.RecNo move up and down, but they remain
different until I go to the bottom or top of the grid. I have tried
repainting, BeginUpdate and EndUPdate, and LoadFromDataSource.
  Sometimes it works to set the grid.datasource to nil, and then back
to the correct datasource. Sometimes this doesn't work.
  Any suggestions?
Thanks, Vilis Nams



Relevant Pages

  • Re: Datagrid Events
    ... drop down lists and text boxes). ... someone else (I would not use datagrids for editing - just not the kind of ... >> Allow them to edit a row of data. ... > disable editing of the grid and use a set of text boxes and other ...
    (microsoft.public.vb.general.discussion)
  • How to save the edited datas in MSFlexgrid to the database?
    ... I am displaying some data's in MSFlexgrid using the SQL query. ... After displaying the data's in the MSFlexgrid I am editing some data's in the grid by placing the text box and writing some code to make it function. ...
    (microsoft.public.vb.controls)
  • How to save the edited fields to the database?
    ... I am displaying some data's in MSFlexgrid using the SQL query. ... the grid by placing the text box and writing some code to make it function. ... For editing the MSFlexgrid I am placing a text box in the grid ...
    (microsoft.public.vb.com)
  • blank line between records
    ... when I bind the grid to the datasource, is there anyway that I can make the ... insert this blank line at run time in ItemDataBound event or OnItemCreated ... event with the editing pictures hidden. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: MSHFlexgrid scrollbars and textbox
    ... regarding the VSFlexgrid, I have to say, the grid is very nice, except its ... editing capabilities and events are restricted for my use. ... >> top of both the grid and its scrollbars. ...
    (microsoft.public.vb.controls)