Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 17 Jul 2008 18:15:09 +0100,    group: microsoft.public.dotnet.framework.windowsforms        back       


Lining up external combobox with datagridview column   
Hi

I'm very new to windows forms. I want to use a comboBox to do I kind of 
'change all' on some datagridview columns cell values. i.e. The user selects 
a value in the dropdown and it changes all the cell values in the column it 
applys too. AutoSizeColumnsMode is Fill so I would like to lock the comboBox 
to the column that it should apply too.

What options do I have?

Many thanks
Andrew
date: Thu, 17 Jul 2008 18:15:09 +0100   author:   Andrew Jocelyn am

Re: Lining up external combobox with datagridview column   
I am new to using these groups and replied to you rather than the group, can 
you please post my answer back to the group. Thanks!
"Andrew Jocelyn" <j055@newsgroups.nospam> wrote in message 
news:eDpUvCD6IHA.4084@TK2MSFTNGP03.phx.gbl...
> Hi
>
> I'm very new to windows forms. I want to use a comboBox to do I kind of 
> 'change all' on some datagridview columns cell values. i.e. The user 
> selects a value in the dropdown and it changes all the cell values in the 
> column it applys too. AutoSizeColumnsMode is Fill so I would like to lock 
> the comboBox to the column that it should apply too.
>
> What options do I have?
>
> Many thanks
> Andrew
>
date: Thu, 17 Jul 2008 23:05:27 -0500   author:   Bofors am

Re: Lining up external combobox with datagridview column   
Okay, I guess my reply never reached  you. Here its again:
I am assuming that your DataGridView is bound to either a collection of 
objects or a Dataset/datable, you can update this bound collection and 
rebind or refresh your grid. You can hook up this code on the Comobox 
SelectedIndexChanged event.


"Bofors" <bofors@newsgroup.nospam> wrote in message 
news:O8FuGuI6IHA.2260@TK2MSFTNGP03.phx.gbl...
>I am new to using these groups and replied to you rather than the group, 
>can you please post my answer back to the group. Thanks!
> "Andrew Jocelyn" <j055@newsgroups.nospam> wrote in message 
> news:eDpUvCD6IHA.4084@TK2MSFTNGP03.phx.gbl...
>> Hi
>>
>> I'm very new to windows forms. I want to use a comboBox to do I kind of 
>> 'change all' on some datagridview columns cell values. i.e. The user 
>> selects a value in the dropdown and it changes all the cell values in the 
>> column it applys too. AutoSizeColumnsMode is Fill so I would like to lock 
>> the comboBox to the column that it should apply too.
>>
>> What options do I have?
>>
>> Many thanks
>> Andrew
>>
>
>
date: Thu, 17 Jul 2008 23:10:45 -0500   author:   Bofors am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us