DGView Binding (Really need help on this one, please!)

  • Follow


I've posted this issue a couple of days ago, but I wasn't clear, so I'm 
trying again.

I want to be able to bind a collection of "Rows" to a DataGridView para the 
public fields aren't fixed. If each "row" was made out of fixed public fields 
I know I could easily achieve this using BindingList. 

My class structure is as follows:
I have a Field that exposes Name and Value attributes. Now, I also 
have a class Fields which is basically a collection of class Field as you can 
see:
Fields : KeyedCollection<string, Field>. 
So far everything is fine. But now I want to implement a collection of 
Fields, which are Rows basically (something like a DataTable) that I can be 
able to bind easily to a DataGridView, with each datagriview column being 
one of my Field. I hope I was more clear this time. :)
How can I achieve this?

TIA
0
Reply Utf 2/3/2010 10:49:01 AM


0 Replies
225 Views

(page loaded in 0.031 seconds)

Similiar Articles:













8/1/2012 3:44:32 PM


Reply: