May 22, 2009, 7:59 AM
setting one combobox index to another combo box index
In aspx i written like this<ext:ComboBox runat="server" ID="ComboBox1">
<Items>
<ext:ListItem Text="abc" Value="1" />
<ext:ListItem Text="xyz" Value="2" />
</Items>
</ext:ComboBox>
<ext:ComboBox runat="server" ID="ComboBox1">
<Items>
<ext:ListItem Value="1" />
<ext:ListItem Value="2" />
</Items>
</ext:ComboBox>
In aspx.cs
ComboBox1.SelectedIndex=ComboBox2.SelectedIndex
but it says read only plese help me
</PRE>
<Items>
<ext:ListItem Text="abc" Value="1" />
<ext:ListItem Text="xyz" Value="2" />
</Items>
</ext:ComboBox>
<ext:ComboBox runat="server" ID="ComboBox1">
<Items>
<ext:ListItem Value="1" />
<ext:ListItem Value="2" />
</Items>
</ext:ComboBox>
In aspx.cs
ComboBox1.SelectedIndex=ComboBox2.SelectedIndex
but it says read only plese help me
</PRE>