Click here to Skip to main content
15,893,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Roger Wright15-May-10 6:10
professionalRoger Wright15-May-10 6:10 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Pete O'Hanlon15-May-10 5:57
mvePete O'Hanlon15-May-10 5:57 
AnswerRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 5:06
mvePIEBALDconsult15-May-10 5:06 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Luc Pattyn15-May-10 5:25
sitebuilderLuc Pattyn15-May-10 5:25 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
Som Shekhar15-May-10 5:36
Som Shekhar15-May-10 5:36 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 13:09
mvePIEBALDconsult15-May-10 13:09 
GeneralRe: So I Tried Graphics Tonight For The First Time Pin
PIEBALDconsult15-May-10 13:09
mvePIEBALDconsult15-May-10 13:09 
QuestiondataGridView filtering with IList. Pin
mprice21414-May-10 10:50
mprice21414-May-10 10:50 
I'm stuck on a previous problem that I posted a week or so ago (Please let me know if it is considered rude to post a new thread in this case)

I have a dataGridView that is bound to table1 in dataset1. I have changed the column type for column1 to a comboBox and have populated the collection with instances. Let's say 1, 2, and 3.

column2 is also a comboBox, but its instances need to be driven by column1. For '1' in column1, column2 would allow 11,12,13 and for '2' in column1, column2 would allow 21,22,23.

One suggestion was to create another dataTable in dataset1, and bind column2 to the new datatable using another bindingSource and then filter.

I went ahead and created another dataTable and edited the second column in the dataGridView to have the DataSource as bindingSource2 and the DisplayMember as column1 (the first column in dataTable2) (while this may not make sense at first glance, my objective was to manually populate data in dataTable2, column1 and then make sure the comboBox in column2 in dataTable1 would populate with dataTable2 values). But, this did not work.

Would it be easier here to create (3) ILists (IList1, IList2, IList3) each of which contain i1, i2, i3 for each list and then populate the comboBox in column2 of dataTable1 based upon the selection made in column1?

Do I need to look at the second dataTable option a bit more closely?

Thanks.
AnswerRe: dataGridView filtering with IList. Pin
Henry Minute15-May-10 1:22
Henry Minute15-May-10 1:22 
GeneralRe: dataGridView filtering with IList. Pin
mprice21415-May-10 15:46
mprice21415-May-10 15:46 
GeneralRe: dataGridView filtering with IList. Pin
Henry Minute16-May-10 0:23
Henry Minute16-May-10 0:23 
GeneralRe: dataGridView filtering with IList. Pin
mprice21416-May-10 15:57
mprice21416-May-10 15:57 
Questionwindows 7 jumplist window border style? Pin
Druuler14-May-10 8:05
Druuler14-May-10 8:05 
AnswerRe: windows 7 jumplist window border style? Pin
Luc Pattyn14-May-10 8:56
sitebuilderLuc Pattyn14-May-10 8:56 
AnswerRe: windows 7 jumplist window border style? Pin
Luc Pattyn14-May-10 10:43
sitebuilderLuc Pattyn14-May-10 10:43 
QuestionCreating Control at Design time Pin
Said Ali Jalali14-May-10 6:50
Said Ali Jalali14-May-10 6:50 
AnswerRe: Creating Control at Design time Pin
DaveyM6914-May-10 7:07
professionalDaveyM6914-May-10 7:07 
QuestionRe: Grid: Fill background colour to 1 column only from row Help Pin
roman_s14-May-10 5:15
roman_s14-May-10 5:15 
Question\r\n to <br /> Pin
Xmen Real 14-May-10 5:00
professional Xmen Real 14-May-10 5:00 
AnswerRe: \r\n to <br /> Pin
PIEBALDconsult14-May-10 6:19
mvePIEBALDconsult14-May-10 6:19 
GeneralRe: \r\n to Pin
Xmen Real 14-May-10 6:24
professional Xmen Real 14-May-10 6:24 
GeneralRe: \r\n to Pin
PIEBALDconsult14-May-10 6:37
mvePIEBALDconsult14-May-10 6:37 
GeneralRe: \r\n to Pin
Xmen Real 14-May-10 6:41
professional Xmen Real 14-May-10 6:41 
GeneralRe: \r\n to Pin
AspDotNetDev14-May-10 9:28
protectorAspDotNetDev14-May-10 9:28 
GeneralRe: \r\n to Pin
Xmen Real 14-May-10 18:26
professional Xmen Real 14-May-10 18:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.