datagrid itemcreated and itembound enents are not firing?
I have a DataGrid which i am using on the page alogn with 4 tabs. Clicking on each tab different datasource is getting bing to the data grid. Now following is problem,
- There are 4 tabs of UI
- I have written code to bind data source to data 开发者_JS百科grid on onclick event of tab (which is linkbutton)
- However when i am clicking on the tab data gets bind to data grid but item created and item databound event which i have attached to grid on page init() are not firing on the first time.
- I also have attached page index changed event clicking on which executes item created and item data bound event
Have anyone seen something like this before ? What could be the possible reasons ?
Thank all
Is the DataGrid being added to the page dynamically when the tab is activated? It sounds like it could be a problem with dynamically added controls and events, but additional details would really be helpful. It could also be the order in which things are happening in your page. Can you show the relevant code?
精彩评论