all groups > dotnet windows forms databinding > december 2004 >
You're in the

dotnet windows forms databinding

group:

bind winforms datagrid row to indexed property



bind winforms datagrid row to indexed property Scott Walters
12/12/2004 8:48:45 PM
dotnet windows forms databinding: Hi,

I'm trying to display a data grid that acts like a spreadsheet, 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
Re: bind winforms datagrid row to indexed property Ed Kaim
12/13/2004 7:36:10 AM
Have you considered using Excel? It may be a good alternative now that you
can use Visual Studio to do serious development in managed code.

[quoted text, click to view]

AddThis Social Bookmark Button