dbgrid - move to new record

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andy (Andy_at_discussions.microsoft.com)
Date: 02/23/05


Date: Wed, 23 Feb 2005 06:37:07 -0800

Hi,

I have a dbgrid on a form. My intention is to allow a user to enter
multiple records by using the dbgrid similar to a sub form in Access.

Now, I have set the dbgrid to unbound, as I want the user to enter all the
records in the grid FIRST from a blank grid, and then click a command button
on the form to enter ALL the records into the data source by using a loop.
The reason for this is so that they can edit any record in the grid before
updating the data source.

I have 2 main issues :-

1) When I tab between columns, the data in the column is highlighted first,
so in effect I have to tab twice to get to the next column.

2) Once I have entered the last piece of data in the last column, i want to
be able to "tab" to the next row, and not have to click in the first column
on the next row.

Is this possible with this kind of grid, or would i be better using a
different type of grid? If so, which would be the best one use?

Thanks In Advance

Andy



Relevant Pages

  • Flackerndes Flat-Style im DBGrid
    ... Dazu habe ich ein Grid vom DBGrid abgeleitet und DrawCell überschrieben. ... Grid mache flackert das Grid. ... Es flackert nur bei den Linien der Fixed Cols ... kein Event-Handler hinter dem Doppelklick Event. ...
    (de.comp.lang.delphi.misc)
  • RE: How to Refresh Datagrid Control?
    ... Normaly you would fill a grid like this: ... Would you suggest the code that I need to use to "refresh" the dataset? ... created from the New Data Source wizard. ... is needed to requery the sql database? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Get back to a record
    ... When I get back to the Grid, it scrolls a bit and I didn't ... I am working on on a global variable which is known also to the DBGrid form ... > The bookmark should go to the same, and maybe you should try to get ...
    (comp.lang.pascal.delphi.misc)
  • Re: DataGrid [Attribute] - $10 for answer
    ... > descriptor information which the grid will pick up and use to display it's ... > the data grid column styles first, and then bind your data source to the ... trivial to have originally implemented the DataGrid in such a way as to query ... >> public string FirstName ...
    (microsoft.public.dotnet.languages.csharp)
  • Unable to retrieve schema - Divide by zero error encountered
    ... Here's the funny thing - the grid works fine. ... I get to the point where I can test the data source, ... calls a stored procedure with two arguments) are correct. ... even Visual Studio manages to get the data in the data source configuration ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)