Hi there,

I'm having trouble in how to set a new value in PropertyGrid, the scenario is this, I've a combobox listing the ID of a particular record, once the user choose an ID from the combobox, the following code will fire:


PropertyGrid2.Source("1. Player Code").Value = dt(0)("playercode").ToString
PropertyGrid2.Source("2. Last Name").Value = dt(0)("lastname").ToString
PropertyGrid2.Source("3. Name").Value = dt(0)("name").ToString
PropertyGrid2.Source("4. Full Name").Value = dt(0)("fullname").ToString



PropertyGrid2.DoLayout()
I'm currently using coolite 0.8. the code don't work with or without the DoLayout(). My aspx code is as follow:


<ext:PropertyGrid 
ID="PropertyGrid2" runat="server" Width="300" AutoHeight="true" >
<Source>
    <ext:PropertyGridParameter Name="1. Player Code" Value="">
        <Editor>
            <ext:ComboBox ID="cmbEdit1" runat="server" StoreID="Store1" DisplayField="fullname" ValueField="playercode" AutoPostBack="true">
                <AjaxEvents>
                    <Select OnEvent="cmbEdit1_Click"> </Select>
                </AjaxEvents>
            </ext:ComboBox>
        </Editor>
    </ext:PropertyGridParameter>
    <ext:PropertyGridParameter Name="2. Last Name" Value="" />
    <ext:PropertyGridParameter Name="3. Name" Value="" />
    <ext:PropertyGridParameter Name="4. Full Name" Value="" />
    <ext:PropertyGridParameter Name="5. Post" Value="--">
        <Editor>
            <ext:ComboBox ID="ComboBox1" runat="server"></ext:ComboBox>
        </Editor>
    </ext:PropertyGridParameter>
</Source>


<View>
    <ext:GridView ID="GridView2" ForceFit="true" ScrollOffset="2" runat="server" />
</View>


<Buttons>
    <ext:Button runat="server" ID="Button1" Text="Save" Icon="Disk">
        <AjaxEvents>
            <Click OnEvent="bttAdd_Click" />
        </AjaxEvents>
    </ext:Button>
</Buttons> 
</ext:PropertyGrid>
Have I miss out something? Any help is really appreciated. Thanks.