datagrid

A

amitis

hi all,
tis a layman's question,
can i add data to a datagrid column ?
i want to fill the datagris columns from different
sources, is this possible ?how ? i saw no .datasource in
dataGridColumn ...
thank you in advance
amitis
 
J

Jeremy Cowles

amitis said:
hi all,
tis a layman's question,
can i add data to a datagrid column ?
i want to fill the datagris columns from different
sources, is this possible ?how ? i saw no .datasource in
dataGridColumn ...

A common misunderstanding is that the datagrid is actually *not* made to
hold data, it is made to *display* data. The underlying DataSet or DataTable
(or XML file or whatever) is the object that you will actually be adding
data to. If DataGrid01 is bound to DataTable01 then to add a row to the data
grid programatically, you simply add a row to DataTable01 and then refresh
DataGrid01.


HTH,
Jeremy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top