|
-
July 17th, 2008, 07:23 AM
#1
datagridview combobox binding
Hi,
I have a datagridview that is databound to a BindingSource containing objects of type MyCustomClass.
MyCustomClass contains two Properties (Name, Class) and 1 dictionary, myUserDictionary<string,string>
class MyCustomClass{
string Name {get;set;}
string Class {get;set;}
Dictionary<string,string> myUserDictionary;
}
Is there a way to set a DataGridViewComboBoxColumn's DataPropertyName attribute to a specific <key,value> pair of myUserDictionary?
This one has me stumped...
-
July 17th, 2008, 07:08 PM
#2
Re: datagridview combobox binding
the time it will take you to figure out , you'll wish you'd simply used a strongly typed datatable. it has all the features you seek if you make one column the primary key
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|