Board index » cppbuilder » TDBGrid Get Row; Set Row
Robert Piska
![]() CBuilder Developer |
Mon, 02 Sep 2002 03:00:00 GMT
|
Robert Piska
![]() CBuilder Developer |
Mon, 02 Sep 2002 03:00:00 GMT
TDBGrid Get Row; Set Row
Is there any function in DBGrid to...
Get the current Row I am going to edit? I need to do this for a batch program that is Multi Threaded and will |
Team
![]() CBuilder Developer |
Tue, 03 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowHi, Robert! Editing and row positioning are controlled by the data set, not the More on threads and databases can be found at http://www.temporaldoorway.com/programming/cbuilder/databaseandbde/qu... ------ |
Robert Piska
![]() CBuilder Developer |
Tue, 03 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowQuote>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< <markcash...@vtechnologies.com> wrote regarding Re: TDBGrid Get Row; Set Row: Quote> Hi, Robert! ythread.htm How do I jump from row to row? The only property I can see is ActiveRecord to get the active record |
Edward Diene
![]() CBuilder Developer |
Wed, 04 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowTDataSet::RecNo . QuoteRobert Piskac wrote: |
Team
![]() CBuilder Developer |
Fri, 06 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowHi, Edward! RecNo is not reliable. Only dBase and Paradox support it. The better ------ |
Robert Piska
![]() CBuilder Developer |
Sat, 07 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowRecNo is always -1 with my database. What is bad is that I have to degrade my application to a bubble sort every time I want to update a record. I should be able to update the record like this. li_retryCount = Does C++ Builder V5 have anything like this? Quote>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< <markcash...@vtechnologies.com> wrote regarding Re: TDBGrid Get Row; Set Row: Quote> Hi, Edward! |
Team
![]() CBuilder Developer |
Sat, 07 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowHi, Robert! There are no row numbers in relational databases, because ordering is Note that it is generally bad form to update through a control in BCB. To get comfortable with the BCB way of doing things, you may want to http://www.temporaldoorway.com/programming/cbuilder/basics/index.htm which, among other things, includes "the simplest database program". ------ |
Robert Piska
![]() CBuilder Developer |
Sat, 07 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowQuote>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< <markcash...@vtechnologies.com> wrote regarding Re: TDBGrid Get Row; Set Row: Quote> There are no row numbers in relational databases, because ordering is row_id is the unique identifier on all tables. There is even an index on it. Do a select row_id on table_name. It works. I can even update a row using the row_id in an update statement. So, your statement of no row_id is not accurate. Anyways, when I update a grid, I am updating data in memory and an dw_employee.object.result[6] = "Updated"; This is the same in C++ Builder. I can cache updates then Most data controls are written for user interaction but I need to run Example Device Password Result |
Robert Piska
![]() CBuilder Developer |
Mon, 09 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowQuote>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< regarding Re: TDBGrid Get Row; Set Row: Quote> >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< |
Team
![]() CBuilder Developer |
Mon, 09 Sep 2002 03:00:00 GMT
Re:TDBGrid Get Row; Set RowHi, Robert! The Oracle facility is highly non-standard and is not supported by In any event, cached updates are transparent to the rest of the program. The only time you need to care that you are using cached updates is when I'd recommend you get a copy of one of the excellent Learn C++ Builder n It's easier than I suspect you think. Don't be trapped by your knowledge ------ |
1. TDBGrid Event for Keyboard Movement From Row To Row
2. TdbGrid: Getting values of columns of selected row
3. Row handle referred to a deleted row or a row marked for deletion
4. Row handle referred to a deleted row or a row marked for deletion
5. Setting color in a row in TDBGrid
6. DBGrid. Setting/getting nr of rows
7. TopRow - How do I set the current row as the top row of a TDBGrid.
8. Moving current record to match row in SQL result table row
9. Calculate difference between a row and its row immediatly following it