How to refresh valuelist in webgrid EditType="DropDownList"?

1 reply. Last post: October 17, 2011 12:52 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Beryl BucherMember

I have a webgrid with an EditType="Dropdownlist" like this:

                <ISWebGrid:WebGridColumn Caption="Bank" DataMember="BankID" FilterEditType="DropdownList"
                    Name="BankID" Width="240px" DataType="System.Int32" EditType="DropdownList">
                    <ValueList DataSourceID="SqlDataBanks" DataTextField="BankName" 
                        DataValueField="BankID">
                    </ValueList>
                </ISWebGrid:WebGridColumn>

 

It works fine, except there's also a webdialog on the page so that the user can add values to the Bank List.  After the user adds a bank, I refresh the datasource (SqlDataBanks), I refresh the grid, I rebind the grid, etc., but the dropdown list itself won't refresh to include the new bank.

Any ideas?

Thanks,  Beryl

All times are GMT -5. The time now is 5:54 PM.
Previous Next