This is a migrated thread and some comments may be shown as answers.

Which event will let me cause my data bound controls to bind?

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SultanOfSuede
Top achievements
Rank 1
SultanOfSuede asked on 12 Nov 2008, 03:35 PM
I've an ajax grid.  When the user clicks add record, the data bound drop down lists are not getting bound.  My drop down list inside the grid edit form looks like this:

                                        <asp:DropDownList ID="DropDownListPlucState" runat="server"
                                            AppendDataBoundItems="true"
                                            DataSource='<%# Cache[Global.CACHE_STATES] %>'
                                            DataTextField="Name"
                                            DataValueField="Code"
                                            SelectedValue='<%# Bind("State") %>'>
                                            <asp:ListItem Text="" Value="" />    
                                        </asp:DropDownList>

The cache has data, but I need to manually call Bind on the DropDownList.  The problem is, I can't find any event that corresponds on the server side to the "add record" click event on the grid. 

This used to work before I started ajax-ifying the grids. 

Thanks in advance.




1 Answer, 1 is accepted

Sort by
0
SultanOfSuede
Top achievements
Rank 1
answered on 12 Nov 2008, 03:47 PM
Never mind.  I spotted a headspace error.
Tags
Grid
Asked by
SultanOfSuede
Top achievements
Rank 1
Answers by
SultanOfSuede
Top achievements
Rank 1
Share this question
or