|
123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace WPFDemo.Bb
- {
- public class Class1
- {
- [DataGridColumnOrder(0)]//设置列的索引
- [DisplayName("整数")]//设置设备名称
- public int data1 { get; set; }
-
- [DataGridColumnOrder(1)]
- [DisplayName("字节")]
- public byte data2 { get; set; }
-
- [DataGridColumnOrder(2)]
- [DisplayName("布尔")]
- public bool data3 { get; set; }
-
- [DataGridColumnOrder(3)]
- [DisplayName("字符串")]
- public string data4 { get; set; }
-
- [DataGridColumnOrder(4)]
- [DisplayName("浮点数")]
- public float data5 { get; set; }
-
- [DataGridColumnOrder(5)]
- [DisplayName("无符号整数")]
- public ushort data6 { get; set; }
- }
- }
|