init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.Utils;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
|
||||
namespace Lskj.PubUtils
|
||||
{
|
||||
public partial class ExportExsForm : Form
|
||||
{
|
||||
public ExportExsForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
gridView1.Appearance.HeaderPanel.Font = new Font("宋体", 9);
|
||||
gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
|
||||
gridView1.Appearance.Preview.Font = new Font("宋体", 9);
|
||||
gridView1.Appearance.Row.Font = new Font("宋体", 9);
|
||||
gridView1.OptionsView.RowAutoHeight = true;
|
||||
gridView1.RowCellStyle += new RowCellStyleEventHandler(gridView1_RowCellStyle);
|
||||
}
|
||||
|
||||
public void gridView1_RowCellStyle(object sender, RowCellStyleEventArgs e)
|
||||
{
|
||||
if (!e.Column.OptionsColumn.AllowEdit)
|
||||
{
|
||||
Color color1 = ColorTranslator.FromHtml("#d0d0d0");
|
||||
e.Appearance.BackColor = color1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user