|
-
October 12th, 2006, 10:11 AM
#1
enum on database and in combobox
I have a class with an enum property.
I want to do two things:
1. Have a ComboBox on the form with the enum strings listed in the dropdown. I need to be able to format the enum string as I wish. For example:
Code:
enum
{
TwoWords,
Word
}
I want the combo box to show "Two Words" and "Word".
I need this for databinding - I am going to bind the combobox to the property of the type of that enum.
2. I want to store and retrieve the enum into a DataSet, and then copy the enum into the object property.
I hope that my questions are clear. I couldn't find any easy solutions to the problem.
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
|