I have a simple DropDownList. A column with the control DropDownList.
The DropDownList is containing 2 values : No/Yes. I’m not binding something to it.
On GridView1_rowEditing I want to set a value to the DropDownList like SelectedValue = "1";. So everytime someone is pressing Edit then the value is set to the DropDownList.
I don’t want to bind the value from database or something , just set the value to it.
On
GridView1_rowEditingevent search for your DropDownList by itsIDproperty usingFindControlmethodEdit
Sorry for that, what you need will not be indside
RowEditingevent it will be insideRowDataBindingevent of yourGridView.RowDataBindingis the place where your row actually get its data and controls