Exposing dataview

S

Skok Tone

Hello all,

I have composite control with button, 2 textboxes and dataview.
Now I want to expose dataview control as propertie to be accessed at
runtime.

I declared propertie:
public DataView myDataView
{
get { return localDataView}
}

on CreateChildControls I create localDataView as
localDataView = new DataView;
localDataView.ID = this.ID+"dataview";

All is ok, I see propertie myDataView in desiger, but when I click on
Columns propertie of my exposed dataview I get error
Object reference not set to an instance of an object.

Any ideas,

Best regards, Skok Tone
 

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,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top