ComboBox in a Datagrid

M

mjpiedade

Hi,

I am using a combobox in a datagrid to display/selection of the product
code.
However, as I have other columns on my datagrid that are related with the
Product Code, I would like to be able to change those columns (that are
typical textboxes) when the SelectedIndexChanged event is raised.
My problem:
-the ComboBox event is on a class and the datagrid (and its bounded dataset)
is on another class, so I just can not find a way to make them comunicate.

I am sure is very easy issue but, as a rookie I would like to find some
help...

I thank you in advance,
MP
 
M

Mohamoss

Hi MP
May be I don't see the problem but I think this should be done with no
problem. If you can't refer directly to the instance of the datagrid !!
then in the SelectedIndexChanged event you do changes on the parent control
of your combobox (which is the datagrid as I understood) and you can do all
the changes on the currentRowindex which should be the row where the
clicked combobox is . you may need to post a snippet if your code if this
is not what you meant .
Also try to look at this article may be it would help

http://www.akadia.com/services/dotnet_combobox_in_datagrid.html

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top