
NetAdvantage For WinForm
云烟,不再年轻
积累是一个漫长的过程,它足以可以让你写出N本书的内容
展开
-
UltraWinGrid 表头加checkbox,加全选功能
// Create an instance of the CreationFilter. This needs to be Form-Level so // we can catch the event that fires when the CheckBox is clicked. CheckBoxOnHeader_CreationFilter aCheckBoxOnHea原创 2009-11-20 08:56:00 · 4568 阅读 · 0 评论 -
一个UltraTree结点拖动到另一个UltraTree上面
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using Infragistics.Win;using Infragistics.Win.UltraWinTree;u原创 2013-12-16 10:51:52 · 1539 阅读 · 0 评论 -
UltraGrid中绑定UltraTextEditor在AfterEditorButtonCloseUp事件中获得所属UltraGridCell
private void AfterEditorButtonCloseUp(object sender, EditorButtonEventArgs e){ if (e.Context != null) { var cell = e.Context as UltraGridCell; }}原创 2013-12-14 09:56:33 · 1664 阅读 · 0 评论 -
从UltraGridCell或UltraGridRow获得所属的UltraGrid对象
cell.Band.Layout.Gridrow.Band.Layout.Grid原创 2013-12-13 22:51:31 · 2342 阅读 · 0 评论 -
UltraWinGrid单元格绑定Tree,双击Tree结点,返回结点值到单元格
重点是把要放Tree的那个单元格用一个全局变量保存,在事件中好给它赋值using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Windows.Forms;using Infragistics.Win;using Infragistics.Win.Ultr原创 2013-11-13 13:04:56 · 2036 阅读 · 0 评论 -
UltraGrid 中嵌入类似CheckBoxList功能
先说一下客户的需求,有点古怪就是在某一列中,放一个类似的CheckBoxList的控件那样,可以多选的东东,选择几项保存的时候就插几条记录进数据库,其余的字段内容一样。但是图上这个有CheckBoxList那行是Add上去的(Grid.DisplayLayout.原创 2011-07-08 16:24:11 · 3485 阅读 · 0 评论 -
UltraCombo,UltraComboEdit 等下拉框控件不显示Header
首先要说的是这两句达不到我要的效果comboRevision.DisplayLayout.Bands[0].HeaderVisible = false;comboRevision.DisplayLayout.Bands[0].Header.Band.H原创 2011-07-06 09:31:19 · 2142 阅读 · 0 评论 -
ultraWinGrid绑定下拉框
要在控件的InitializeRow事件中写绑定的过程原创 2010-08-09 10:16:00 · 1947 阅读 · 0 评论 -
自定义UltraWinGrid控件的列合并模式
/// /// 表示自定义UltraWinGrid控件的列合并模式(以显示文本合并) /// public class CustomMergedCellEvaluator : Infragistics.Win.UltraWinGrid.IMergedCellEvaluator { private string primaryKey; /// /// 获取或设置合并列的主键列的绑定名称 ///原创 2010-07-23 15:00:00 · 2568 阅读 · 1 评论 -
变相解决UltraWinGrid多表头时无法固定列问题
多表头的功能实现以前就写过了,这里不再复述思路是这样:界面上左右放两个UltraGrid,都绑上同样的数据集,两个水平对齐,左边的表格只显示要固定的那几列,右边放不需要固定的列,各自不需要显示的列都隐藏掉,设置左边固定列表格滚动条隐藏GridDateTime.DisplayLayout.RowScrollRegions[0].Scrollbar = Scrollbar.Hide原创 2010-05-26 16:04:00 · 3156 阅读 · 0 评论 -
UltraWinGrid 去掉自动绑定
<br />UltraWinGrid ->DisplayLayout-> NewColumnLoadStyle-> Hide<br />这样每次绑定隐藏列就不会出现原创 2010-07-07 10:44:00 · 1497 阅读 · 0 评论 -
实现ultrawingrid rows clear()功能
ultrawingrid 没有 rows clear()功能自己写了一个等同的功能代码原创 2010-06-30 09:34:00 · 1589 阅读 · 0 评论 -
UltraWinGrid 动态实现多级多表头
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;usin原创 2010-01-14 23:26:00 · 4449 阅读 · 4 评论 -
UltraGrid 卡片模式列自适应宽度
grid.DisplayLayout.Bands[0].PerformAutoResizeCards(true);原创 2009-12-02 15:50:00 · 1935 阅读 · 0 评论 -
UltraWinGrid自适应列宽/行高
说几点:DisplayLayout.AutoFitStyle 用这个属性起不到我要的效果 以下的代码可以起到效果 foreach (UltraGridColumn ugc in grid.DisplayLayout.Bands[0].Columns) ugc.PerformAutoResize(); 更好的一种写法:grid.DisplayLayou原创 2009-12-02 11:21:00 · 5764 阅读 · 3 评论 -
UltraGrid单元格放多个图片
private void ultraGrid1_InitializeRow(object sender, InitializeRowEventArgs e){ // Get the images that we might want to show in the cell. // You could optimize this method by caching the Bitm原创 2014-01-02 19:33:51 · 1846 阅读 · 1 评论