Problem with custom DataGridColumn Dynamic ViewState.

  • Thread starter Vinícius Pitta Lima de Araújo
  • Start date
V

Vinícius Pitta Lima de Araújo

Hi all,
I created a decorator for DataGridColumn that change the behavior of the
InitializeCell method.

In a method that response to SortComando event I remove the columns of the
DataGrid and decorate then with my decorator.

Well, my InitializeCell method works fine like I want, but I have one little
problemn: if I change the state of the column then the change is lost.

Without the decorator, all changes in the columns of the DataGrid are
preserved, but if I decorate the columns the changes are lost.

I look for the documentation and the BoundColumn, for example, don't
override the SaveViewState, LoadViewState or TrackViewState methods from
DataGridColumn Type. So, I think that this isn't the problemn. (I use the
default implementation for this methods because they are protected and I
can't delegate then to the decorated column).

I think that the problemn is change the DataGrid structure (I change the
columns by decorated columns).

Can somebody help-me?

Thank you for pay attention and sorry my bad english.

[]'s
Vinícius Pitta Lima de Araújo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top