how to adding data in dataset

Reply

Join Date: Apr 2006
Posts: 9
Reputation: mojio is an unknown quantity at this point 
Solved Threads: 0
mojio's Avatar
mojio mojio is offline Offline
Newbie Poster

how to adding data in dataset

 
0
  #1
May 9th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 9
Reputation: mojio is an unknown quantity at this point 
Solved Threads: 0
mojio's Avatar
mojio mojio is offline Offline
Newbie Poster

Re: how to adding data in dataset

 
0
  #2
May 9th, 2006
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 8103 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC