|
|
||||||
|
#1
|
|
|
|
|
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. <asp:DropDownList ID="DropDownList2" runat="server" Text='<%# Bind("Platform") %>'> <asp:ListItem>XP</asp:ListItem> <asp:ListItem>2000</asp:ListItem> </asp:DropDownList> 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'? |
|
|
|
#2
|
|
|
|
|
Hello Mark,
Check those solution 1) [url down] 2) http://www.chrismay.org/2006/05/07/D...+Of+Items.aspx |
|
|
| Similar Threads | |
| how to bind array with gridview? Hi, i have values into arrays like product(), newprice(). How can i bind them to an existing gridview? i did:... |
|
| How do you bind a DirectoryInfo[] to a GridView Hi, I need a way to bind a DirectoryInfo[] array to a GridView without any errors. The code I'm using to create the DirectoryInfo[] array is: // Define the current... |
|
| bind data to gridview using custom data class? I have Custom Data class which stores data about single customer and then i store that customer objects in arraylist as shown below. Customer custdata = null; // Custom Data... |
|
| how to bind checkbox in a gridview Hi, I am new to gridview and asp.net and would like to know how to bind a check box in a gridview. Basically, I have a gridview where each row in the gridview has... |
|
|
All times are GMT. The time now is 07:23 AM. | Privacy Policy
|