-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyGridColumn.cs
More file actions
34 lines (27 loc) · 931 Bytes
/
MyGridColumn.cs
File metadata and controls
34 lines (27 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using DevExpress.Utils.Serializing;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.Base;
namespace MyXtraGrid {
public class MyGridColumn : GridColumn {
public MyGridColumn() { }
string customDataValue = string.Empty;
[XtraSerializableProperty()]
public string CustomData {
get { return customDataValue; }
set { customDataValue = value; }
}
protected override void Assign(GridColumn column) {
base.Assign(column);
if(column is MyGridColumn) {
this.CustomData = ((MyGridColumn)column).CustomData;
}
}
}
public class MyGridColumnCollection : GridColumnCollection {
public MyGridColumnCollection(ColumnView view) : base(view) { }
protected override GridColumn CreateColumn() {
return new MyGridColumn();
}
}
}