If I use a DataTable
DataGrid1.DataSource = DataSet1.Tables(0)
it displays all rows and column from the table.
If I use a DataRowArray
DataGrid1.DataSource = DataSet1.Tables(0).Select()
it displays only 2 colums RowError and HasErrors
the rowcount is the rowcount from the table but RowError is in all rows
blank and HasErrors is in all rows "False"
So, maybe I'm completely wrong and "Tables" is a method (never worked with either of those classes), but if Tables is a collection than that is VB code, and VB is 1 indexed, not 0.
Maybe, but they would be wrong. It's not really a subjective thing, VB is just a poorly designed language from top to bottom, but I'll stop ranting now :P
I agree VB on the surface seems pretty darn stupid.
I have learned that it is far easier to program VB on a non-US keyboard where the { and the ; are not inheritantly on the keyboard. I got so tired of typing Alt + plus whatever the stupid character code was that after two weeks I was ready to convert. Thank god I got to come home.
Bookmarks