Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > where does the DataGrid.DataSource property get set?

Reply
Thread Tools

where does the DataGrid.DataSource property get set?

 
 
Dave
Guest
Posts: n/a
 
      06-27-2003
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When does IsReusable Property get interrogated? Joseph Geretz ASP .Net 3 07-06-2009 02:31 AM
Get ubuntu ! Get ubuntu ! Get ubuntu ! Get ubuntu ! Getubuntu Windows 64bit 1 06-01-2009 08:54 AM
DataBinder.Eval for an object's property property... like Eval(Container.DataItem,"Version.Major") Eric Newton ASP .Net 3 04-04-2005 10:11 PM
Set CSS property equal to another CSS property? Noozer HTML 10 10-13-2004 09:20 PM
Is there a way to set the a CSS property to be explicitly the same as another CSS property? Joshua Beall HTML 1 12-10-2003 07:21 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57