hi,
i m working on a simple project, i want to populate my text boxes and comboBoxes through DataGridView, means when i double click on cell content then the text boxes are populated.my question is that if i have to populate comboBox with the specific value then what i have to do then because comboBox.selectedItem is an object but my class property is a string..
e.g
combobox shows 30 days in it and my class is
in the main form:Code:class account { public string day{set;get} }
.......Code:list<account> mylist=new list<account>(); public cellDoubleClick(eventsArgs e) { comboBox.selectedItem=mylist[e.rowIndex].day; }
but that does not happen because "comboBox.selectedItem" is an object so if i have to do that what i have to do then?
desperately looking for ur reply.
thanku