Hi,
I have a dropdown list inside the radgrid
If the user selects No and hits submit button the record will be updated in the database and below the answer No will be saved.(Database is updating properly)
When I click on this page again or refresh the page the page should be loaded with all the correct data from the database.
every time the page loads all data except this drop down is getting binded properly. There are few records where the user selected No but still the drop down is showing Yes. How can I make No as the selected item?
I have a dropdown list inside the radgrid
<
telerik:GridTemplateColumn
HeaderText
=
""
UniqueName
=
"Answer"
DataField
=
"Answer"
>
<
ItemTemplate
>
<
asp:DropDownList
ID
=
"ddlAnswer"
runat
=
"server"
DataTextField
=
"Answer"
DataValueField
=
"Answer"
>
<
asp:ListItem
Value
=
"Yes"
>Yes</
asp:ListItem
>
<
asp:ListItem
Value
=
"No"
>No</
asp:ListItem
>
</
asp:DropDownList
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
If the user selects No and hits submit button the record will be updated in the database and below the answer No will be saved.(Database is updating properly)
When I click on this page again or refresh the page the page should be loaded with all the correct data from the database.
every time the page loads all data except this drop down is getting binded properly. There are few records where the user selected No but still the drop down is showing Yes. How can I make No as the selected item?