where does the DataGrid.DataSource property get set?

Discussion in 'ASP .Net Web Controls' started by Dave, Jun 27, 2003.

  1. Dave

    Dave Guest

    Hi have a question about the DataGrid.DataSource property. When you
    use Visual Studio to set this property in Design mode (using the
    Properties dialog), Visual Studio doesn't generate any code stating
    something like

    myGrid.DataSource = myDataSet;

    as you might think it would. Yet when you fill the appropriate DataSet
    and call DataBind() on the DataGrid, the grid gets set up with all the
    right info. Most of the time when you change something in design mode,
    the Web Form Designer will auto generate code for you, why isn't this
    happening in the case of DataSource? How does the grid know which data
    set to use? Is it stored in some other file?

    Thanks,
    Dave
     
    Dave, Jun 27, 2003
    #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. VB Programmer
    Replies:
    0
    Views:
    718
    VB Programmer
    Apr 7, 2004
  2. Alex
    Replies:
    0
    Views:
    390
  3. Replies:
    4
    Views:
    13,947
  4. KJ
    Replies:
    1
    Views:
    163
    Teemu Keiski
    Aug 16, 2003
  5. Donna
    Replies:
    2
    Views:
    401
    Elton Wang
    Mar 17, 2005
Loading...

Share This Page