开发者

Can I force the CustomUnboundColumnData event to be raised?

开发者 https://www.devze.com 2023-02-11 00:39 出处:网络
I have a u开发者_如何学JAVAsercontrol that has custom unbound data columns in a gridView. I want to retain view state when switching between screens in my app in terms of selected tabs and focused row

I have a u开发者_如何学JAVAsercontrol that has custom unbound data columns in a gridView. I want to retain view state when switching between screens in my app in terms of selected tabs and focused rows etc.

When I do this switch and restore that view state, my custom data is gone and the CustomUnboundColumnData event handler does not get used at all.

Is there a way to raise the CustomUnboundColumnData event for this gridView after I restore my view state?


Call the RefreshRow or RefreshRowCell methods, passing a row handle and optionally a column.


If you are using the ASPxGridView, I would suggest that you turn off the EnableRowsCache property. One more solution is to call the ASPxGridView's DataBind method explicitly within the Page_Init method.


Found a work around. I was refreshing my data in this grid view anyway. However, the few columns that had unbound data needed to be re-added to the grid before refreshing this data.

0

精彩评论

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