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

I try to add DataGrid to my form but there is no DataGrid in my toolbox and I try to add it to my toolbox but I fail any one can help my in adding a DataGrid in my WPF Form...?
Posted
Updated 4-Nov-10 13:34pm
v2

You can see this for your .net 3.5

Click
 
Share this answer
 
Comments
Dalek Dave 5-Nov-10 5:17am    
Uh huh!
Check in the properties for your project.

Is the Target set to .Net 3.5?

If so change it to .Net 4.0 and the DataGrid will magically appear.

That caught me out at first. :) :)
 
Share this answer
 
Comments
Yasser El Shazly 4-Nov-10 21:47pm    
there is no .net4.0 in the combo box there is just .net 2.0 , 3.0 and 3.5 what i will do...?
If you are using VS2010 then there should be a .NET 4.0 entry. If you are and there isn't an entry then you need to reinstall VS2010.

If you are using VS2008, which sounds likely form your comment, then it doesn't come with a WPF DataGrid. You can download the 'official' one from here[^]. There are links there to tutorials and lots of other good stuff as well as the WPF Toolkit itself.

Good Luck. :)
 
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