The text of this article is not in this database — only its details are. Read it on the old site: How to use a DataGrid or DataGridView in a WPF application
3 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

meysam hooshmandPosted Jan 18, 2010, 4:46 AM
hello Rahul, i encountered an error, """ Cannot create instance of 'Window1' defined in assembly 'DataGridinXAMl, Version=1.0.3670.23819, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Window1.xaml' Line 1 Position 9. """" what is your solution??? thx
Manu xamlPosted Apr 25, 2009, 3:59 PM
Is there a way to dynamically set the SelectedIndex="" from a datagrid tag? I want to set it based on the last modified record.
HappyarimaaneditedPosted Dec 12, 2008, 4:12 AMEdited Dec 12, 2008, 4:15 AM
Use of InitializeComponent gives an error :"Name "InitializeComponent" is not declared." Why is it so ? However when I remove the 'Namespace' declaration the error goes away.