DataGridView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datagrid view with two combobox's. These are populated by lookup
tables. I need one column to change what is loaded into the other. How do I
do this on code?

I don't thnk this method will work:
scriptDataGridView[8, e.RowIndex].Value = "some SQL statement"

Ideas please?
 
Repopulate your dataset using your selection as parameter could be easier.

chanmm
 
Yes, that is what I shoudl do. Any code to get me started? I am new to C#.
thanks

Ming Man Chan said:
Repopulate your dataset using your selection as parameter could be easier.

chanmm

Chris said:
I have a datagrid view with two combobox's. These are populated by lookup
tables. I need one column to change what is loaded into the other. How do
I
do this on code?

I don't thnk this method will work:
scriptDataGridView[8, e.RowIndex].Value = "some SQL statement"

Ideas please?
 
The answer is on page 62 of this datagridview document:
http://www.windowsforms.net/Samples/Go To Market/DataGridView/DataGridView FAQ.doc


Chris said:
Yes, that is what I shoudl do. Any code to get me started? I am new to C#.
thanks

Ming Man Chan said:
Repopulate your dataset using your selection as parameter could be easier.

chanmm

Chris said:
I have a datagrid view with two combobox's. These are populated by lookup
tables. I need one column to change what is loaded into the other. How do
I
do this on code?

I don't thnk this method will work:
scriptDataGridView[8, e.RowIndex].Value = "some SQL statement"

Ideas please?
 

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

Back
Top