devexpress实战
Jonny Lin
热衷于net core、DevOps、vue、微服务架构
展开
-
Devexpress RadioGroup获取选中项
从Items中获取选中项索引SelectedIndexvar group = sender as RadioGroup;var text = group.Properties.Items[group.SelectedIndex].Description;var value = group.Properties.Items[group.SelectedIndex].Value;原创 2021-05-08 17:53:46 · 910 阅读 · 0 评论 -
Devexpress GridView单元格高亮显示
文章目录引言解决方案引言在做一个某一个客户要求统计报表(加班统计)的时候遇到了需要高亮显示,其实还有很多情况都存在,例如医院的检查指标等。解决方案注册CustomDrawCell事件即可private void RegisterEvent(){ gridViewDetail.CustomDrawCell += GridViewDetail_CustomDrawCell;}private void GridViewDetail_CustomDrawCell(object sender原创 2021-05-08 15:15:13 · 787 阅读 · 0 评论 -
devexpress GridLookUpEdit支持多列检索
引言在开发时遇到了通过拼音简码进行检索,但是一般下拉选项中并不会将简码放在列中显示。实现/// <summary>/// 重写搜索,支持多列搜索/// 多个条件使用空格/// </summary>/// <param name="text"></param>/// <param name="displayMember"></param>/// <returns></returns>protec原创 2021-01-17 21:52:54 · 905 阅读 · 1 评论 -
改变DevExpress.XtraEditors.GridLookUpEdit宽高
序言阴差阳错的被调到另外一个winform项目中去了,遇到了GridLookUpEdit控件,不知道如何更改其大小。问了同事也不知道如何搞,这是最尬的事情。开始实战PopupSizeable//// 摘要: // Gets or sets a value indicating whether the dropdown window is sizeable. // // 值: // true, if the dropdown is sizeable; otherwise原创 2020-12-20 17:36:45 · 651 阅读 · 0 评论 -
RepositoryItemDateEdit之NullDate NullText使用技巧
1、RepositoryItemDateEdit之NullDate NullText使用技巧1.1 NullDate NullText使用在客户那里得到一个特殊需要,就是时间可以不选择为空的。数据库中对应的字段设置的DateTime类型,不为空可以为空这么一个需求可以配合NullDate、NullText使用。1(gridViewBlood.Columns["InfusionEnd"].ColumnEdit as RepositoryItemDateEdit).NullText = s原创 2020-12-20 15:06:56 · 850 阅读 · 0 评论