 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Thu Apr 19, 2007 8:12 am Post subject: dbgrid and dropdownlist |
|
|
Dear all,
I have a dbgrid with dropdownlist in a column, say X. What I would
like to have happen is that when the user selects from the
dropdownlist in column X, that it automatically populates the cells
below the selection within column X with the selection. Eg user
selects "cows" therefore "cows" should appear in all cells below
selection cell.
There are 14 rows available for the user to enter data for each column
in the dbgrid. Selection cell can be any from 1 to 14. Obviously no
populating cells below row 14.
The dbgrid is connected to TTable.
Probably very simple to achieve.
many thanks in advance. |
|
| Back to top |
|
 |
Robin Guest
|
Posted: Mon May 21, 2007 8:12 am Post subject: Re: dbgrid and dropdownlist |
|
|
robin.dobos (AT) dpi (DOT) nsw.gov.au wrote:
| Quote: | Dear all,
I have a dbgrid with dropdownlist in a column, say X. What I would
like to have happen is that when the user selects from the
dropdownlist in column X, that it automatically populates the cells
below the selection within column X with the selection. Eg user
selects "cows" therefore "cows" should appear in all cells below
selection cell.
There are 14 rows available for the user to enter data for each column
in the dbgrid. Selection cell can be any from 1 to 14. Obviously no
populating cells below row 14.
The dbgrid is connected to TTable.
Probably very simple to achieve.
many thanks in advance.
|
Hey Robin.
Do you mean something like 'fill down' in excel?
A way to do that would be to iterate through the rows (of the TTable)
updating them to the new value.
--
Robin.
Australian Bridal Accessories := http://www.bridalbuzz.com.au
Turbo for Noobs (a work in progress) := http://turbofornoobs.blogspot.com/ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|