DevExpress
nono26
这个作者很懒,什么都没留下…
展开
-
DevExpress LookUpEdit控件的使用方法
private void fromQualityComplete_Load(object sender, EventArgs e) { var order = m_vh.Grid.FocusedRowHandle; //获取焦点行任意单元格的数据int var row = m_vh.Grid.GetDataRow(order); //获取行数据 Order = row.Field<string>("cO原创 2021-04-02 11:00:33 · 308 阅读 · 0 评论 -
Dev GridView之设计器编辑
1.打开设计器界面2.设计列3.如需字段不可编辑,如下设置:4.根据两列计算第三列的数值并自动更新CellValueChanged事件private void gridView1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) { if ((e.Column == 单价) || (e.Column == 总数))原创 2020-12-08 16:36:44 · 472 阅读 · 0 评论 -
Dev GridControl
设置表头统一居中gvList.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;设置内容统一居中gvList.Appearance.Row.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;设置某列内容居中gvList.Columns["规格"].AppearanceCell.TextOptions原创 2020-08-11 11:12:59 · 965 阅读 · 0 评论 -
Dev 导出Excel
基本导出private void btnPrint_Click(object sender, EventArgs e) { SaveFileDialog fileDialog = new SaveFileDialog(); fileDialog.Title = "xxx";//设置打印表头 fileDialog.FileName = fileDialog.Title + DateTime.Now.ToString("y原创 2020-08-11 11:07:05 · 1068 阅读 · 0 评论