The best way to change datagrid header in PreRender?

hrabia

Centurion
Joined
May 21, 2003
Messages
107
Location
Hamburg, Germany
I've a combobox to change language on my page. Because of page lifetime, I have to set all my labels, texts etc. from ResourceManager in prerender handler to be sure that culture change has been done. I can't set HeaderText property of DataGridColumn in prerender because it is evaluated during data binding. I don't want to call DataBind() in OnPreRender also... Any ideas?

BTW. I can walk through Controls collection, but it's very poor, hard coded solution (and problematic when we have some sortable and not sortable columns).
 
Back
Top