471,570 Members | 892 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

C# Windows Form DataGrid and DataTable

Hi,

I have a DataGrid DataGrid1 in my C# Windows Form MyForm.
The DataGrid1 uses DataTable as it's DataSource in the run time.
Now that I have Column1 and Column2 and 2 DataRows in MyDataTable.
How do I do to let the DataTable updated saying that I changed the
DataGrid1's value?
Thanks for help.
Jason
Dec 3 '05 #1
1 2349
Actually with a bound Winforms DataGrid, if a user makes a change or adds a
row using the actual grid UI, I believe the underlying datasource is updated
as part of this process. if you need an event, look at the RowChanged and
similar events of the DataTable class
-- Peter
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jason Huang" wrote:
Hi,

I have a DataGrid DataGrid1 in my C# Windows Form MyForm.
The DataGrid1 uses DataTable as it's DataSource in the run time.
Now that I have Column1 and Column2 and 2 DataRows in MyDataTable.
How do I do to let the DataTable updated saying that I changed the
DataGrid1's value?
Thanks for help.
Jason

Dec 3 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by PAUL EDWARDS | last post: by
3 posts views Thread by Arjen | last post: by
3 posts views Thread by scott | last post: by
8 posts views Thread by Inigo Jimenez | last post: by
6 posts views Thread by Fred Morrison | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.