| | |
| | | grdMain.AlternatingRowsDefaultCellStyle.BackColor = Color.Lavender; |
| | | grdMain.ColumnHeadersDefaultCellStyle.BackColor = Color.LightGray; |
| | | // |
| | | ClsPub.GetGridView(grdMain, Name, ClsPub.AppPath);//设置å宽 |
| | | if (grdMain.ColumnCount > 0 && grdMain.RowCount > 0) |
| | | { |
| | | ClsPub.GetGridView(grdMain, Name, ClsPub.AppPath);//设置å宽 |
| | | } |
| | | |
| | | } |
| | | |
| | | public static void initGridRpt(DataGridView grdMain, string Name, bool VisualStyles) |
| | |
| | | { |
| | | try |
| | | { |
| | | if(oGrd.RowCount<=1 ) |
| | | { |
| | | return; |
| | | } |
| | | int Cols; |
| | | char c = Convert.ToChar(","); |
| | | string sStr = ClsIni.ReadIni("GridSave", KeyItem, AppPath + @"\" + "grdWidth.wyini"); |
| | |
| | | sT = sTotalCol.Split(Convert.ToChar(",")); |
| | | oSumGrid.BuildTotalCols(sT); |
| | | // |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, "æ¯", 0); |
| | | //DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, "æ¯", 0); |
| | | // |
| | | DBUtility.Xt_BaseBillFun.GetGrid(grdMain, this.Name); |
| | | Total(); |
| | |
| | | |
| | | private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) |
| | | { |
| | | oSumGrid.SetGridsum_NoData(); |
| | | //oSumGrid.SetGridsum_NoData(); |
| | | } |
| | | |
| | | private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) |
| | | { |
| | | oSumGrid.SetGridsum_NoData(); |
| | | //oSumGrid.SetGridsum_NoData(); |
| | | } |
| | | |
| | | private void grdMain_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | //DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | } |
| | | |
| | | private void EAM_SourceRuningStatus_KeyDown(object sender, KeyEventArgs e) |