/// <summary> /// 显示自定义字符事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void gridViewInpatientFail_CustomDrawEmptyForeground(object sender, DevExpress.XtraGrid.Views.Base.CustomDrawEventArgs e) { try { DS_Common.CustomDrawEmptyDataSource("没有查询到您想要的数据", new Font("宋体", 10, FontStyle.Bold), Brushes.Red, e); } catch (Exception ex) { MyMessageBox.Show(1, ex); } }