I made a simple form with a strongly typed dataset.
When I bind the Rows to one of the tables, I can initialize the columns.
However, at runtime, every cell displays \"System.Data.DataRowView\".
It seems that the grid somehow doesn't read the DataColumns.
What would be best in this case, would be that the grid accesses the properties that the DataSet Generator has made. Same as when binding to a custom collection of business objects.
Am I doing something wrong?
I don't want to write a whole lot of code: the grid designer should be able to handle what I want to do.
With C1 TrueDbGrid, this is all very easy (there are other things that are not so easy - that's why I am evaluating Flygrid).
Hope you can help me.
I use VS Orcas. The generated data tables look like
Partial Public Class ArticleDataTable
Inherits Global.System.Data.TypedTableBase(Of ArticleRow)
Maybe that has something to do with the problem???
It turns out, that if you initialize a grid column with New NumberColumn(\"Id\", \"Id\") it does work, but if you let the generated code create a New NumberColumn and set the Caption afterwards, it does not work.
It seems like the property FieldName of a Column is not serialized in the generated code. Probably some Attribute set wrong.