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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.