随笔分类 - DEV使用技巧
摘要:using System;using System.Windows.Forms;using DevExpress.XtraEditors;namespace WindowsFormsApplication1 { public class ScrollHelper { readon...
阅读全文
摘要: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...
阅读全文
摘要:Dev的表格中编辑捕获EditValueChanged事件技巧:如果需要立即获取到控件编辑的当前值,调用一下GridView的PostEditor( )方法即可。
阅读全文
摘要:基于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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文