views:

31

answers:

0

Hi there, I'm was going to update are windows VB.net project to use Subsonic 2.2.1 from 2.0.3.0

I was testing 2.2.1 to make sure everything would update with no problems and guess What 

I have most for the data grid views bind to the subsonic generated collection and I can change the columns header text, I found with the test that I cannot do that with 2.2.1. I don’t get the column header text from the collection

I’m returning collections using

Dim att As AttachmentCollection = New SubSonic.Select().From(Attachment.Schema.TableName).Where(Attachment.Columns.MachineID).IsGreaterThan(1).ExecuteAsCollection(Of AttachmentCollection)()

DataGridView1.DataSource = att

Also

Dim att As AttachmentCollection = New AttachmentCollection().Load
DataGridView1.DataSource = att

And

DataGridView1.DataSource = New SubSonic.Select().From(Attachment.Schema.TableName).ExecuteReader

The data grid view has no rows.

I tried setting the bind to just the object Attachment and I got the column header text And using the same calls above the data grid view has rows but you don’t see any text.

Do I have to add the column with code or I’m I missing something.

Thanks PQSIK