(Basic?) Question re datagridview MSDN sample program

The answer may be obvious to some, but I'm stumped.

Anyway, in the following sample program using a datagridview a datafile is loaded into a datagrid that is sized for the amount of data.

ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_fxsamples/html/141516e8-05c4-45e9-b344-ae7815e68c29.htm

or under

DataGridView control [Windows Forms]

samples

Where I'm lost is how does it do it? Where, programmatically, or intrinsically, is the data file read and the data put in the grid and where/how is the grid sized.

Apologies for making you have to download the sample and look through it.

Idiot's guide to this greatly appreciated.

Thanks in advance.

Andy

[741 byte] By [andykennaugh1062] at [2008-1-10]
# 1

Is this the sample you mentioned? If not could you paste an online link of the sample?
ChunshengTang-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...
# 2

The sample is in the VC# 2005 (Express) help/documentation files. I don't think there's an online version.

Just bring up the documentation, scroll through to DataGridView and then samples.

(look for DataGridView control [Windows Forms], samples )

Thanks

andykennaugh1062 at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual C# 2005 Express Edition...