Access the table property. Or if you know the table at designtime, just access 
the table directly. It's always pointing to the current record:

Table1.Insert;
Table1.fieldbyName('Index').asInteger :=  
DBGrid.DataSource.Dataset.fieldbyname('index').asInteger;
Table1.Post;

Dave


Ali A <[EMAIL PROTECTED]> wrote:                               
 Hi
 
 i want to know , how to get the index of selected record in dbgrid
 
 for example i want to add the selected record to a new table
 
 how to do that?
 
 and how to add one field of a selected record to a new field of a table
 
 
     
                               

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[Non-text portions of this message have been removed]

Reply via email to