随笔分类 -  DEV使用技巧

摘要:using System;using System.Windows.Forms;using DevExpress.XtraEditors;namespace WindowsFormsApplication1 { public class ScrollHelper { readon... 阅读全文
posted @ 2015-11-19 19:27 沙耶 编辑
摘要:private void gridView1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) { if( e.Column.FieldName.IndexOf("QTY")>-1) { int total= 0; object val = gridView1.GetRowCellValue(e.RowHandle, gr... 阅读全文
posted @ 2013-08-30 08:58 沙耶 编辑
摘要:Dev的表格中编辑捕获EditValueChanged事件技巧:如果需要立即获取到控件编辑的当前值,调用一下GridView的PostEditor( )方法即可。 阅读全文
posted @ 2012-09-13 10:37 沙耶 编辑
摘要:基于DEV1.1.2CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e)存在BUG,经过测试研究,使用以下方法private void gridViewCarList_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e) { DevExpress.XtraGrid.Views.Grid.GridView view = sender as DevExp... 阅读全文
posted @ 2012-07-26 10:52 沙耶 编辑
摘要:public BindingList<StudentDC> StudentList { get { return this.bindingSourceList.DataSource as BindingList<StudentDC>; } set { bindingSourceList.DataSource = value; } } private void FrmGridTest_Load(object sender, System.EventArgs e) { Stu... 阅读全文
posted @ 2012-07-25 12:27 沙耶 编辑
摘要:public BindingList<StudentDC> StudentList { get { return this.bindingSourceList.DataSource as BindingList<StudentDC>; } set { bindingSourceList.DataSource = value; } } private void FrmGridTest_Load(object sender, System.EventArgs e) { Stu... 阅读全文
posted @ 2012-07-24 23:16 沙耶 编辑

点击右上角即可分享
微信分享提示