Help !

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

HI,

Can we fill Datagrid in a Windows form by code i.e programmatically without
using Data binding.

- Gary
 
Not really. However, you don't need to run a query or build a
DataSet/DataTable if you don't want to. Instead, you can build an ArrayList
and populate it with data and bind to the array to fill a DataGrid.

hth

--
____________________________________
Bill Vaughn
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
 
Not really?

What's wrong with manually building the rows and columns, hooking it to a
new table object and then hooking it to a new dataset object? I do that a
lot in webforms, I would expect similar behavior in winforms.
 
Sure, you can do that too of course. But I assumed (perhaps incorrectly)
that he/she did not want to "data bind" to a DataTable.

--
____________________________________
Bill Vaughn
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
 
Back
Top