WPF--DataGrid的使用
程序员文章站
2022-04-08 17:53:29
...
<DataGrid
Grid.Row="2" Width="727" Height="379" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5,35,0,0" Name="dgv" CanUserAddRows="False" SelectionChanged="dgvBoxList_SelectionChanged" CanUserResizeColumns="False" CanUserResizeRows="False" AlternatingRowBackground="Lavender" Background="White" ColumnHeaderHeight="40" RowHeight="40" SelectionUnit="FullRow" SelectionMode="Single" GridLinesVisibility="None">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding BoxId}" Header="试试" Width="103"></DataGridTextColumn>
<DataGridTextColumn Binding="{Binding Name}" Header="" Width="103"></DataGridTextColumn>
<DataGridTextColumn Binding="{Binding Drugs}" Header="" Width="103"></DataGridTextColumn>
<DataGridTextColumn Binding="{Binding Drugss}" Header="" Width="103"></DataGridTextColumn>
<DataGridTextColumn Binding="{Binding Num}" Header="" Width="103"></DataGridTextColumn>
<DataGridTextColumn Binding="{Binding AlarmL}" Header="" Width="103"></DataGridTextColumn>
<DataGridTextColumn Binding="{Binding Ala}" Header="" Width="103"></DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
推荐阅读
-
oracle查询当前运行的进程、查询被锁的对象、杀Seesion的SQL、设置SQL语句计时等教程
-
在linux命令下导出导入.sql文件的方法
-
c语言指针基础之指针的基本概念
-
MySQL导入csv、excel或者sql文件的小技巧
-
最新:如何在不满足最低硬件要求的电脑上升到win11系统
-
MSSql简单查询出数据表中所有重复数据的方法
-
SQL SERVER中强制类型转换cast和convert的区别详解
-
中国融资最疯狂的行业正在变凉,企业要拼真功夫了
-
简单介绍下 PHP5 中引入的 MYSQLI的用途_PHP教程
-
springboot启动feign项目报错:Service id not legal hostnam的解决