开发者

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,

  1. There are 4 tabs of UI
  2. I have written code to bind data source to data 开发者_JS百科grid on onclick event of tab (which is linkbutton)
  3. 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.
  4. 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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜