M
Mark B
I've got a GridView that has a SQL backend to a table tblLanguageValues.
When a user is adding non-US language values (after selecting a LanguageCode
from a drop-down, e.g. fr-CA), I hide the Platform drop-down box which is in
a GridView row since it's superfluous as in other places I just go by what
the EN-US value says.
<aspropDownList ID="DropDownList2" runat="server" Text='<%#
Bind("Platform") %>'>
<asp:ListItem>XP</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>
</aspropDownList>
When trying to edit a non EN-US row in the GridView, I get an error message:
'DropDownList2' has a SelectedValue which is invalid because it does not
exist in the list of items.
Parameter name: value
How can I programmatically refrain from Binding the Platform field when
LanguageCode<>'EN-US'?
When a user is adding non-US language values (after selecting a LanguageCode
from a drop-down, e.g. fr-CA), I hide the Platform drop-down box which is in
a GridView row since it's superfluous as in other places I just go by what
the EN-US value says.
<aspropDownList ID="DropDownList2" runat="server" Text='<%#
Bind("Platform") %>'>
<asp:ListItem>XP</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>
</aspropDownList>
When trying to edit a non EN-US row in the GridView, I get an error message:
'DropDownList2' has a SelectedValue which is invalid because it does not
exist in the list of items.
Parameter name: value
How can I programmatically refrain from Binding the Platform field when
LanguageCode<>'EN-US'?