VB.NET Datagrid help

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
Sorry, I just started with .Net this week, and while the MSDN is great, I don't find it as accessable as the Java API docs yet, so I'm having a little trouble with the Datagrid control.

Is there a method like Datagrid.getColumnHeader(row) that returns a string with the column name? I'm reading in an XML file for example:

<item>
<date></date>
<idNum></idNum>
<name></name>
</item>

I want to read the headers because the tags might be out of order or one might be missing.

Thanks
 

cadrys

Junior Member
Apr 24, 2006
3
0
0
To get the column header, access the ColumnCollection ..

myGrid.Columns[0].HeaderText
 

Atheus

Diamond Member
Jun 7, 2005
7,313
2
0
Can't answer your question, I just recently started with .NET myself and I'm using C# anyway, but I just wanted to say;

Originally posted by: tfinch2
and while the MSDN is great, I don't find it as accessable as the Java API docs yet

Personally I think it's horrible compared to the Java docs, it's so damn slow to load pages, and it's so hard to find anything! Even when found it's sparse at best - half the error descriptions are like "this error indicates the operation has failed"... Gee thanks Bill.
 

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
Originally posted by: cadrys
To get the column header, access the ColumnCollection ..

myGrid.Columns[0].HeaderText

Thanks for the help, but I decided though to walk through each XML instead though instead of just dumping it into a datagrid on XML auto read though. I want to have error handling in case the XML syntax is wrong.

I will know now though when I encounter datagrids sooner or later. :)