Problem with DataGrid persistence

E

Eric Dugal

Hi!!

I'm building a component that operate on on a datagrid.

My variable declaration :

private DataGrid m_DataGrid;


My DataGrid Properties look like this :

[Browsable(true)]
[Category("DataBind"),
Description("Get/Set the DataGrid control that the pager should bind
to.")
]
public DataGrid DataGrid
{
get{return m_DataGrid;}
set{m_DataGrid = value;}
}


The problem is when i tried to put the m_DataGrid in ViewState, it
doesn't work. I receive the following error message :

The type 'PowerToolbox.WebGrid' must be marked as Serializable or have
a TypeConverter other than ReferenceConverter to be put in viewstate.


any idea???

Thanks,
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top