开发者

Alternative to WPF DataGrid using .NET 3.5 SP1

开发者 https://www.devze.com 2023-01-04 16:39 出处:网络
I am building a WPF Application using C# in VS 2008/.NET 3.5 SP1.I am trying to use the DataGrid control but when I create it in the XAML view the XML validator complains that the type is not found. A

I am building a WPF Application using C# in VS 2008/.NET 3.5 SP1. I am trying to use the DataGrid control but when I create it in the XAML view the XML validator complains that the type is not found. Also, the IntelliSense list does not display an option for DataGrid.

According to the docs,开发者_如何学JAVA it seems this control is not supported until .NET 4.0: http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.aspx

How would I create a similar control in .NET 3.5 SP1?


You can use the same DataGrid from WPF toolkit for .net 3.5 http://wpf.codeplex.com/releases/view/29117 The same control was included in .net 4.0

Alternativly you can use ListView control. It provides basic functionality similar to DataGrid. Can be fine for simple scenarious.

0

精彩评论

暂无评论...
验证码 换一张
取 消