Exposing dataview

Discussion in 'ASP .Net Building Controls' started by Skok Tone, Oct 15, 2004.

  1. Skok Tone

    Skok Tone Guest

    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
     
    Skok Tone, Oct 15, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Howard Dierking
    Replies:
    1
    Views:
    358
    Michael Schröder
    Aug 14, 2003
  2. wh
    Replies:
    2
    Views:
    477
  3. Jason
    Replies:
    1
    Views:
    389
    Chris Jackson
    Feb 16, 2004
  4. Mark

    Exposing event in user control

    Mark, Jul 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    442
    John Saunders
    Jul 2, 2004
  5. CodeMonkey
    Replies:
    1
    Views:
    768
    joyal jhaveri
    Feb 4, 2011
Loading...

Share This Page