Click here to Skip to main content
15,877,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I would like to know how to populate a WPF DataGrid with a list of objects without using data binding and manually defining columns in DataGrid.

Also how can you populating a DataGrid from a MySQL or SQL database without using data binding? Is there a way to click on a DataGrid row and delete that row and have the DataGrid refresh and exclude deleted row without having to reload WPF window.

Thanks in advance for any help.
Updated 12-Jan-11 16:08pm

1 solution

AFAIK about WPF, there is not much difference in normal Datagrid binding ( and WPF Datagrid binding when you are doing it on server side. So I hope this link will be useful to you.
Binding an ArrayList with DataGrid Control[^]

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900