PC Review


Reply
Thread Tools Rate Thread

BoundColumn property

 
 
gator
Guest
Posts: n/a
 
      1st Jun 2010
Can someone please explain in layman terms, the purpose of BoundColumn in
ComboBox in terms of viewing two columns when dropped down and storing one
value in the table and displaying different value in the form?

I want to be able to see two columns in drop down mode, column 1 value
stored in table and column 2 value displayed in form data view.
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      1st Jun 2010
Since you want the value of the first column to be stored in the table, set
the BoundColumn to 1.

Since you want the value of the second column to be displayed, set the
ColumnWidths property to 0. (if you really wanted to, you could set it to,
say, 0;1" to ensure that the second column only shows as 1 inch wide)

Make sure the ColumnCount property is set to 2.

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"gator" <(E-Mail Removed)> wrote in message
news:5BCBFD5A-B2A9-4B40-B14C-(E-Mail Removed)...
> Can someone please explain in layman terms, the purpose of BoundColumn in
> ComboBox in terms of viewing two columns when dropped down and storing one
> value in the table and displaying different value in the form?
>
> I want to be able to see two columns in drop down mode, column 1 value
> stored in table and column 2 value displayed in form data view.



 
Reply With Quote
 
Rick Brandt
Guest
Posts: n/a
 
      2nd Jun 2010
gator wrote:

> Can someone please explain in layman terms, the purpose of BoundColumn in
> ComboBox in terms of viewing two columns when dropped down and storing one
> value in the table and displaying different value in the form?
>
> I want to be able to see two columns in drop down mode, column 1 value
> stored in table and column 2 value displayed in form data view.


The column value you see when the ComboBox is not dropped is always the
left-most column with a non-zero width. You can store any column you want
and that can even be a column that you do not show, but the first visible
column in the drop-down is always the column shown when not dropped down.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BoundColumn rn5a@rediffmail.com Microsoft ASP .NET 1 17th Mar 2007 11:38 AM
boundcolumn property for alignment inside datagrid cell Chumley Walrus Microsoft ASP .NET 1 8th Jun 2005 05:20 PM
Combo Box BoundColumn property Frederick Chow Microsoft Access Forms 10 1st Apr 2005 08:38 AM
asp:boundcolumn rj Microsoft ASP .NET 1 29th Nov 2004 07:57 AM
BoundColumn tshad Microsoft ASP .NET 3 5th Nov 2004 09:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 AM.