|
-
Nov 14th, 2019, 09:19 AM
#1
Thread Starter
Junior Member
[RESOLVED] How to Sort Data Bound Combobox
Hi Guys!,
i am having this issue "ComboBox that has a DataSource set cannot be sorted. Sort the data using the underlying data model." is there a way to sort out data bound items?
i have been researching as well and found this on google
SiteBindingSource.DataSource = myDataTable <---- i can't find how to do myDataTable
SiteBindingSource.Sort = "SomeColumn" <----- changed this to "[Site Name]"
Combobox1.DataSource = SiteBindingSource
but i can't seem to make this work. i hope that somebody can help me on this
Tags for this Thread
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
|