Quantcast
Viewing all articles
Browse latest Browse all 5

WPF Datagrid

Hi Dilip Varma,

Based on my understanding, you have added a new column to the DataGrid, while the DataGrid columns are auto generated. But you cannot get the new column added.

If your data grid is set AutoGenerateColumns=”True”, the ItemsSource must be a collection of your class objects, and each item in the Items is one that class instance.

Please refer to the following thread, it tells you how to get any cell in a data grid.
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/63974f4f-d9ee-45af-8499-42f29cbc22ae

Hope this helps. If you still have any question about this, please feel free to reply.

Best regards,
Kevin

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>