XPTable控件使用说明
C# XPTable控件 使用说明系列
刘欣的博客
00年建设重庆第一根ADSL,2010年erphome basis版主,2020年大榕树BASIS群主,2025年开发赛力斯汽车超级工厂整车混线排产程序。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C# XPTable 自己画cell单元格(XPTable控件使用说明六)
private void Form_Load(object sender, EventArgs e){ table.BeforePaintCell += new PaintCellEventHandler(table_BeforePaintCell);} private void table_BeforePaintCell(object sender, PaintCellEventArgs e){ // draw a checkerboard style table...原创 2022-05-21 11:28:24 · 839 阅读 · 0 评论 -
C# XPTable 实现行的拖动(XPTable控件使用说明五)
我们有一个场景,要实现XPTABLE中行的拖动,试了一上午,终于实现了。如下生产订单需要间隔生产,做几个黄色,再做几个黑色,计划员要收拖去排序:排序的结果如下:使用XPTABLE的拖拽代码如下: // table2 订单表的拖放 private void table2_MouseDown(object sender, MouseEventArgs e) //鼠标按下发生 { // MessageBox.Show("Ctrl原创 2022-05-12 16:39:07 · 981 阅读 · 0 评论 -
C# XPTable 多列排序(XPTable控件使用说明四)
XPTABLE 点击列头后,我想按指定的几列来排序:比如销售订单按升序排,行项目按降序排: columnModel2.Columns.Add(new TextColumn("开始日期", 100)); columnModel2.Columns.Add(new TextColumn("开始时间", 100)); columnModel2.Columns[1].Alignment = ColumnAlignment.Center; colu.原创 2022-04-29 14:13:21 · 964 阅读 · 0 评论 -
C# XPTable 单元格增加图标(XPTable控件使用说明三)
今天用了2个小时,才把图标加上,原来图标是列的属性,定义列的地方需要定义一整列都是图标。1、注意定义“状态”列是图标列: columnModel1.Columns.Add(new TextColumn("班次日期", 100)); columnModel1.Columns.Add(new TextColumn("班次", 100)); columnModel1.Columns.Add(new TextColum...原创 2022-04-27 15:27:46 · 871 阅读 · 0 评论 -
C# XPTable 如何获取选中项(XPTable控件使用说明二)
我一开始在网上没有找到资料,后来在XPTable的使用帮助中发现了用法,其实在Tablemodel中有一个Selections对象,里面就是选中的数据和功能,什么都有:A Table provides two ways that selected Cells can be visualised - Grid style where the individual selected Cells are hilighted, or ListView style where only the Cell in t原创 2022-04-10 16:54:23 · 602 阅读 · 0 评论 -
C# WINFORM项目中使用XPTable控件(XPTable控件使用说明一)
从MFC开始就一直使用ListView控件,直到前不久开发“汽车保养里程碑”工具才找到XPTable,用起来很方便的一个数据表展示控件,可惜网上说明不多,我来加一篇吧。XPTable 包含三个组件:XPTable has three main components:Table ColumnModel - the collection of Columns displayed in the Table TableModel - the collection of Rows and Ce.原创 2022-04-10 16:47:25 · 3401 阅读 · 1 评论
分享