943,948 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 10688
  • ASP.NET RSS
May 9th, 2006
0

how to adding data in dataset

Expand Post »
I've got the dropdownlist that has datatextfield from dataset from database.
And i've the problem with my dataset

If i have 1 row in dataset. My dropdownlist will have one item too.
And i query on event selectedindexchange
So if i have only one item in dropdownlist, it doesn't work.

So i decided to add a blank row to index[0] in dropdownlist or in the dataset before adding to dropdownlist.
But i don't know how to do that.

Could you help me to solve this problem ?

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mojio is offline Offline
9 posts
since Apr 2006
May 9th, 2006
0

Re: how to adding data in dataset

I can solve it already...

With add a blank row in the dataset with SQL Command (Union)

a blank Row will be shown in the first index of dropdownlist

^^

Thanks to see My Prob
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mojio is offline Offline
9 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: please help
Next Thread in ASP.NET Forum Timeline: Need Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC