/// <summary> /// 序号列 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dbGridView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { try { DS_Common.AutoIndex(e); } catch (Exception ex) { MyMessageBox.Show(1, ex); } }
/// <summary> /// 序号 --- 婴儿 /// <auth>Yanqiao.Cai</auth> /// <date>2011-11-12</date> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gViewBabyInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { try { DS_Common.AutoIndex(e); } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
/// <summary> /// 序号 /// <auth>Yanqiao.Cai</auth> /// <date>2011-10-25</date> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridViewHistoryInfo_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e) { try { DS_Common.AutoIndex(e); } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(ex.Message); } }
/// <summary> /// 加序号列 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvMainPage_CustomDrawRowIndicator( object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { try { DS_Common.AutoIndex(e); } catch (Exception ex) { throw ex; } }
//private void gridControlDiseaseGroup_MouseDown(object sender, MouseEventArgs e) //{ // if (e.Button == MouseButtons.Right) // { // this.popupMenu.ShowPopup(new Point(Control.MousePosition.X, Control.MousePosition.Y)); // } //} #region 绑定右键菜单 //private DevExpress.XtraBars.BarButtonItem barButtonItemDiseaseGroup; //private void BindPopupMenu() //{ // barButtonItemDiseaseGroup = new DevExpress.XtraBars.BarButtonItem(); // barButtonItemDiseaseGroup.Caption = "删除"; // barButtonItemDiseaseGroup.Id = 1; // barButtonItemDiseaseGroup.Name = "Delete"; // barButtonItemDiseaseGroup.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(barButtonItemDiseaseGroup_ItemClick); // popupMenu.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { // new DevExpress.XtraBars.LinkPersistInfo(this.barButtonItemDiseaseGroup) // }); // barManagerPop.Items.AddRange(new DevExpress.XtraBars.BarItem[] { // barButtonItemDiseaseGroup // }); //} #endregion private void gridViewDiseaseGroup_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { //if (e.Info.IsRowIndicator && e.RowHandle >= 0) //{ // e.Info.DisplayText = (e.RowHandle + 1).ToString(); //} try { DS_Common.AutoIndex(e); //edit by xlb 2012-12-21 } catch (Exception ex) { MyMessageBox.Show(1, ex); } }
/// <summary> /// 序号列 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvDataElement_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { #region --------已注销 by xlb 2013.02.04------------ //if (e.Info.IsRowIndicator && e.RowHandle >= 0) //{ // e.Info.DisplayText = (e.RowHandle + 1).ToString(); //} #endregion try { DS_Common.AutoIndex(e); } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
/// <summary> /// 加序号列 /// Add BY XLB 2013-6-08 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridViewInpatientList_CustomDrawRowIndicator (object sender, RowIndicatorCustomDrawEventArgs e) { DS_Common.AutoIndex(e); }