bind winforms datagrid row to indexed property

From: Scott Walters (walters_at_edge.net)
Date: 12/13/04


Date: Sun, 12 Dec 2004 20:48:45 -0600

Hi,

I'm trying to display a data grid that acts like a spread***, so the
user can enter text data into arbitrary rows and columns. Then, when the
  user clicks a button, i want to retrieve the data and process it. I've
gotten close to getting this working by binding to an ArrayList that
contains objects but the problem is that the columns are bound to
specific, named properties called Field1, Field2, Field3 etc... Not only
is this messy, but it predetermins the max number of columns at design
time. Can the rows be bound to indexed properties, or is there some much
easier way to do this that I'm missing?

Thanks,
Scott Walters


Loading