Home All Groups Group Topic Archive Search About
Author
2 Apr 2005 10:24 PM
bingomanatee
I am new at VB programing and experiementing at using datagrids. I
would like to know how to get rid of the header that spans the column
heads -- the big horizontal thing. Failing that, I would like to use it
to display the title of my data.

As I am using data from XML not an ODBC swource, I am using an array of
objects as a data source. Is this type of data source an issue here?

thanks in advance, Dave

Author
3 Apr 2005 1:24 AM
Ken Tucker [MVP]
Hi,

Show quoteHide quote
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridclasscaptionvisibletopic.aspYou can bind a datagrid to an array.  It will show any properties containedin the class stored in the array.  Public variables will not be displayed.You can read a well formed xml file into a dataset by using the dataset'sreadxml method.http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatasetclassreadxmltopic.aspKen---------------------"bingomanatee" <edelh***@manateebay.com> wrote in messagenews:1112480665.601349.63***@l41g2000cwc.googlegroups.com...I am new at VB programing and experiementing at using datagrids. Iwould like to know how to get rid of the header that spans the columnheads -- the big horizontal thing. Failing that, I would like to use itto display the title of my data.As I am using data from XML not an ODBC swource, I am using an array ofobjects as a data source. Is this type of data source an issue here?thanks in advance, Dave