/// <summary> /// RowCellStyle /// </summary> /// <param name="e"></param> internal void RowCellStyle(DevExpress.XtraGrid.Views.Grid.GridView gv, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e) { if (e.Column == gv.FocusedColumn && e.RowHandle == gv.FocusedRowHandle) { e.Appearance.BackColor = Color.FromArgb(251, 165, 8); e.Appearance.BackColor2 = Color.White; } else { } int hand = e.RowHandle; if (hand < 0) { return; } EntityPatUpload vo = gv.GetRow(hand) as EntityPatUpload; if (vo.SZ == "已上传") { e.Appearance.ForeColor = Color.FromArgb(0, 0, 156); } gv.Invalidate(); }
List <EntityPatUpload> GetLstRowObject() { List <EntityPatUpload> data = new List <EntityPatUpload>(); EntityPatUpload vo = null; string value = string.Empty; int[] rownumber = this.Viewer.gvData.GetSelectedRows();//获取选中行号; for (int i = 0; i < rownumber.Length; i++) { vo = Viewer.gvData.GetRow(rownumber[i]) as EntityPatUpload; data.Add(vo); } return(data); }
internal void Edit() { vo = GetRowObject(); }