这是一个c#版本的wpf datagrid控件,实现自定义wpf datagrid控件。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 778752 2017-01-04 22:52 ExtendedGrid.dll
文件 957440 2016-12-29 12:00 Fluent.dll
文件 593920 2017-01-04 21:28 ICSharpCode.AvalonEdit.dll
文件 134144 2017-01-04 22:52 ImagePackage.dll
文件 18432 2017-01-04 22:52 MultiEventCommandBinder.dll
文件 3238 2016-12-29 12:05 UserControlsAutoFilterPlacerControl.xaml
文件 2609 2016-12-29 12:05 UserControlsAutoFilterPlacerControl.xaml.cs
文件 1834 2016-12-29 12:05 UserControlsCodeViewer.xaml
文件 1127 2016-12-29 12:05 UserControlsCodeViewer.xaml.cs
文件 3165 2016-12-29 12:05 UserControlsColumnChooserPlacerControl.xaml
文件 2247 2016-12-29 12:05 UserControlsColumnChooserPlacerControl.xaml.cs
文件 3120 2016-12-29 12:05 UserControlsColumnInformationSave.xaml
文件 2696 2016-12-29 12:05 UserControlsColumnInformationSave.xaml.cs
文件 3759 2016-12-29 12:05 UserControlsColumnSplitterPlacerControl.xaml
文件 3923 2016-12-29 12:05 UserControlsColumnSplitterPlacerControl.xaml.cs
文件 3170 2016-12-29 12:05 UserControlsCopyPastePlacerControl.xaml
文件 2245 2016-12-29 12:05 UserControlsCopyPastePlacerControl.xaml.cs
文件 3934 2016-12-29 12:05 UserControlsExortToCsvPlacerControl.xaml
文件 3282 2016-12-29 12:05 UserControlsExortToCsvPlacerControl.xaml.cs
文件 4067 2016-12-29 12:05 UserControlsExortToPdfPlacerControl.xaml
文件 3391 2016-12-29 12:05 UserControlsExortToPdfPlacerControl.xaml.cs
文件 4083 2016-12-29 12:05 UserControlsExportToExcelPlacerControl.xaml
文件 3477 2016-12-29 12:05 UserControlsExportToExcelPlacerControl.xaml.cs
文件 4272 2016-12-29 12:05 UserControlsFooterPlacerControl.xaml
文件 2583 2016-12-29 12:05 UserControlsFooterPlacerControl.xaml.cs
文件 5148 2016-12-29 12:05 UserControlsFrozenRowsPlacerControl.xaml
文件 3254 2016-12-29 12:05 UserControlsFrozenRowsPlacerControl.xaml.cs
文件 5151 2016-12-29 12:05 UserControlsGroupingPlacerControl.xaml
文件 3150 2016-12-29 12:05 UserControlsGroupingPlacerControl.xaml.cs
文件 3444 2016-12-29 12:05 UserControlsMultiTrippleSortPlacerControl.xaml
文件 2256 2016-12-29 12:05 UserControlsMultiTrippleSortPlacerControl.xaml.cs
............此处省略17个文件信息
using System;
using System.Collections.objectModel;
using System.ComponentModel;
using System.Data;
using System.Windows.Data;
namespace TestClient.UserControls
{
///
/// Interaction logic for PlacerControl.xaml
///
public partial class AutoFilterPlacerControl : INotifyPropertyChanged
{
public AutoFilterPlacerControl()
{
DataContext = this;
InitializeComponent();
SourceTable = new DataTable();
SourceTable.Columns.Add(new DataColumn(“GameName“ typeof(string)));
SourceTable.Columns.Add(new DataColumn(“Creator“ typeof(string)));
SourceTable.Columns.Add(new DataColumn(“Publisher“ typeof(string)));
SourceTable.Columns.Add(new DataColumn(“Owner“ typeof(string)));
var row = SourceTable.NewRow();
SourceTable.Rows.Add(row);
row[“GameName“] = “World Of Warcraft“;
row[“Creator“] = “Blizzard“;
row[“Publisher“] = “Blizzard“;
row[“Owner“] = “Mark“;
row = SourceTable.NewRow();
SourceTable.Rows.Add(row);
row[“GameName“] = “Halo“;
row[“Creator“] = “Bungie“;
row[“Publisher“] = “Microsoft“;
row[“Owner“] = “Bill“;
row = SourceTable.NewRow();
SourceTable.Rows.Add(row);
row[“GameName“] = “Gears Of War“;
row[“Creator“] = “Epic“;
row[“Publisher“] = “Microsoft“;
row[“Owner“] = “Steve“;
codeViewer.LoadData(this.GetType().Name);
}
DataTable _sourceTable;
public DataTable SourceTable
{
get
{
return _sourceTable;
}
set
{
_sourceTable = value;
NotifyPropertyChanged(“SourceTable“);
}
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(String info)
{
if (PropertyChanged != null)
{
PropertyChanged(this new PropertyChangedEventArgs(info));
}
}
private void UserControl_Loaded(object sender System.Windows.RoutedEventArgs e)
{
}
}
public class Student
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int? RollNumber { get; set; }
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 778752 2017-01-04 22:52 ExtendedGrid.dll
文件 957440 2016-12-29 12:00 Fluent.dll
文件 593920 2017-01-04 21:28 ICSharpCode.AvalonEdit.dll
文件 134144 2017-01-04 22:52 ImagePackage.dll
文件 18432 2017-01-04 22:52 MultiEventCommandBinder.dll
文件 3238 2016-12-29 12:05 UserControlsAutoFilterPlacerControl.xaml
文件 2609 2016-12-29 12:05 UserControlsAutoFilterPlacerControl.xaml.cs
文件 1834 2016-12-29 12:05 UserControlsCodeViewer.xaml
文件 1127 2016-12-29 12:05 UserControlsCodeViewer.xaml.cs
文件 3165 2016-12-29 12:05 UserControlsColumnChooserPlacerControl.xaml
文件 2247 2016-12-29 12:05 UserControlsColumnChooserPlacerControl.xaml.cs
文件 3120 2016-12-29 12:05 UserControlsColumnInformationSave.xaml
文件 2696 2016-12-29 12:05 UserControlsColumnInformationSave.xaml.cs
文件 3759 2016-12-29 12:05 UserControlsColumnSplitterPlacerControl.xaml
文件 3923 2016-12-29 12:05 UserControlsColumnSplitterPlacerControl.xaml.cs
文件 3170 2016-12-29 12:05 UserControlsCopyPastePlacerControl.xaml
文件 2245 2016-12-29 12:05 UserControlsCopyPastePlacerControl.xaml.cs
文件 3934 2016-12-29 12:05 UserControlsExortToCsvPlacerControl.xaml
文件 3282 2016-12-29 12:05 UserControlsExortToCsvPlacerControl.xaml.cs
文件 4067 2016-12-29 12:05 UserControlsExortToPdfPlacerControl.xaml
文件 3391 2016-12-29 12:05 UserControlsExortToPdfPlacerControl.xaml.cs
文件 4083 2016-12-29 12:05 UserControlsExportToExcelPlacerControl.xaml
文件 3477 2016-12-29 12:05 UserControlsExportToExcelPlacerControl.xaml.cs
文件 4272 2016-12-29 12:05 UserControlsFooterPlacerControl.xaml
文件 2583 2016-12-29 12:05 UserControlsFooterPlacerControl.xaml.cs
文件 5148 2016-12-29 12:05 UserControlsFrozenRowsPlacerControl.xaml
文件 3254 2016-12-29 12:05 UserControlsFrozenRowsPlacerControl.xaml.cs
文件 5151 2016-12-29 12:05 UserControlsGroupingPlacerControl.xaml
文件 3150 2016-12-29 12:05 UserControlsGroupingPlacerControl.xaml.cs
文件 3444 2016-12-29 12:05 UserControlsMultiTrippleSortPlacerControl.xaml
文件 2256 2016-12-29 12:05 UserControlsMultiTrippleSortPlacerControl.xaml.cs
............此处省略17个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)