Devexpress 控件常用属性知识点:

DateEdit控件:

dateEdit1.Properties.TextEditStyle = DisableTextEditor //该属性可以直接设置用户禁止输入

CharControl 控件:

设置十字线显示的提示:CrosshairLabelVisibility =DefaultBoolean.False;

/// 设置Legend位于底部并居中

/// </summary>

/// <param name="lengend">Legend</param>

public static void SetBottomCenter(this Legend legend)

{

    legend.Direction = LegendDirection.LeftToRight;

    legend.AlignmentHorizontal = LegendAlignmentHorizontal.Center;

    legend.AlignmentVertical = LegendAlignmentVertical.BottomOutside;

}

lookup Edit 控件:
获取值改变之前的数据,如果是NULL 第一次那么就是初始化,可以判断

((DevExpress.XtraEditors.Controls.ChangingEventArgs)e).OldValue
//  设置 LookUpEdit 的值
 CUSTOMER.ItemIndex = CUSTOMER.Properties.GetDataSourceRowIndex(item.FieldName, dtrReturn.ItemArray[1].ToString());  

Devexpress控件用户控件内嵌窗口,所有输入框光标失灵解决方案

//将内嵌窗口的Boder边框设置为无边框就可以了。
 frmChangeAnimalID.FormBorderStyle = FormBorderStyle.None;  

Devexpress GridControlView 获取排序、过滤之后的结果集

// 此属性为隐藏属性 ,虽然找不到但是可以使用
 IList  myDataSet= ((controlCurrentReport as ControlReport).gridControlMainView ).DataController.GetAllFilteredAndSortedRows();
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值