New Posts New Posts RSS Feed: Assigning an EntityList to a Checked ListBox
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Assigning an EntityList to a Checked ListBox

 Post Reply Post Reply
Author
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Topic: Assigning an EntityList to a Checked ListBox
    Posted: 06-Jan-2009 at 9:17am
How do I assign an entitylist to a checked listbox?
 
I tried this and it works
 
myListBox.DataSource = controller.GetRecords();
 
but it doesn't display the column properly.  How do I tell it to display the proper column like in a listbox where you have a displaymember and a value member?  Is there an easy way to do it or do I have to loop through my entityList?
 
Bill
 
Back to Top
viola View Drop Down
Newbie
Newbie


Joined: 06-Jan-2009
Location: Singapore
Posts: 7
Post Options Post Options   Quote viola Quote  Post ReplyReply Direct Link To This Post Posted: 06-Jan-2009 at 9:39am
Ever tried override ToString() of your Record?
Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Posted: 06-Jan-2009 at 9:43am
That won't work.
Back to Top
viola View Drop Down
Newbie
Newbie


Joined: 06-Jan-2009
Location: Singapore
Posts: 7
Post Options Post Options   Quote viola Quote  Post ReplyReply Direct Link To This Post Posted: 06-Jan-2009 at 10:06am
Oopz, misread the question...
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 07-Jan-2009 at 10:05am
I was able to get something to work using a DataGridView and a column of Check Boxes.
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down