I have a grid and use a popup edit form that I have created a template for. On the edit event it will bind my fields just fine but now I am trying to add insert functionality as well. The problem is that I have a radio button list on the edit form that I set using the following:
I am not positive but I think it is trying to bind a non-breaking space...
Obviously adding a new record will not be able to bind a N or Y. Can I capture the "InitInsert" on the ItemCommand event and set the value of the new grid row record to a default of say 'N' before the edit form binding occurs? If so, how do I do this?
<
asp:RadioButtonList ID="rbAnalyst" runat="server" RepeatDirection="Horizontal" SelectedValue='<%# Bind("ANALYST_IND")%>'>
<asp:ListItem Value="Y">Yes</asp:ListItem>
<asp:ListItem Value="N">No</asp:ListItem>
</asp:RadioButtonList>
I am not positive but I think it is trying to bind a non-breaking space...
Obviously adding a new record will not be able to bind a N or Y. Can I capture the "InitInsert" on the ItemCommand event and set the value of the new grid row record to a default of say 'N' before the edit form binding occurs? If so, how do I do this?