I have two listboxes and i am adding listbox1 items to listbox2.
listbox 1 items are loaded from database. so i wanted to store listbox1 value and text to 2D array. how to do that please anyone help me
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Dec 24, 2013, 1:48 AM EST
// from listbox1 to listbox2
VulpesRank #55 · 29.2K reputationPosted Dec 23, 2013, 2:55 AM EST
samantaRank #3,157 · 454 reputationPosted Dec 23, 2013, 3:06 AM EST
okay that's correct and now i want to add this 2D array to another listbox.
how can i do that please help me
VulpesRank #55 · 29.2K reputationPosted Dec 23, 2013, 3:17 AM EST
samantaRank #3,157 · 454 reputationPosted Dec 23, 2013, 3:28 AM EST
once i added selected items from listbox1 to listbox2, selected listbox1 items must be removed.
and once i removed items from listbox2 all removed items must be added to listbox1 with sorted order.
how to do that.
VulpesRank #55 · 29.2K reputationPosted Dec 23, 2013, 4:19 AM EST
If it's the latter, can more than one item be selected at once?
samantaRank #3,157 · 454 reputationPosted Dec 23, 2013, 5:49 PM EST
i am loading listbox1 items from darabase and its sorted by name.
once i remove items from listbox2, all removed items must be added back to listbox1 and listbox1 must be sorted.
samantaRank #3,157 · 454 reputationPosted Dec 24, 2013, 2:15 AM EST
i got the solution
jacob lee8 reputationPosted Nov 10, 2014, 4:12 PM EST
I know that you can use exclamation sign to bind array of simple types (like string) to GridView like this:
But this doesn't seem to be the case with DataNavigateUrlFields
And I get following error:
A field or property with the name '!' was not found on the selected data source.
Can you help me?
VulpesRank #55 · 29.2K reputationPosted Nov 11, 2014, 6:12 AM EST
http://www.devcurry.com/2009/03/bind-arraylist-with-hyperlinks-to.html