BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

dbgrid and dropdownlist

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Apr 19, 2007 8:12 am    Post subject: dbgrid and dropdownlist Reply with 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.
Back to top
Robin
Guest





PostPosted: Mon May 21, 2007 8:12 am    Post subject: Re: dbgrid and dropdownlist Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.