BruceWayne
BruceWayne

Reputation: 55

getting first index value from dropdown list

I need to display the grid View populated with some data on selected index change event of a Drop Down List .

It will be fine when selecting other index values from the drop down list at first time.

but when selecting first index value at first time ,the selected value returns nothing.

how to get the selected value from the drop down list on first click.

Upvotes: 0

Views: 776

Answers (1)

Subin Jacob
Subin Jacob

Reputation: 4864

Don't set SelectedValue or SelectedIndex while populating/binding the DropDownList.

Upvotes: 1

Related Questions