vis781
Well-known member
Hi all, I have been playing around with an owner drawn listbox and due to my lack of knowledge on this subject i have run into a problem. I can draw all the items no problem and set the colors etc. However when i try to set the datasource property of the listbox i get an invalid cast exception.
'System.data.datarowview cannot be converted to string'
Now i know why this is happening as i'm using the draw string method to enter the items into the listbox, however i don't seem to be able to get around it. Is there something i missing here when trying to bind an owner drawn list box to a datatable?
thnks.
'System.data.datarowview cannot be converted to string'
Now i know why this is happening as i'm using the draw string method to enter the items into the listbox, however i don't seem to be able to get around it. Is there something i missing here when trying to bind an owner drawn list box to a datatable?
thnks.