| | |
| | | using System.Text.RegularExpressions; |
| | | using System.Windows.Forms; |
| | | using System.Windows.Forms.VisualStyles; |
| | | using UserControls.Data; |
| | | using static System.Windows.Forms.Control; |
| | | |
| | | |
| | |
| | | edit.SelectAll(); |
| | | } |
| | | |
| | | public static void SetGridLayout(GridView gridView1) |
| | | public static void SetGridLayout(GridView gridView1,int maxWidth=500) |
| | | { |
| | | foreach (GridColumn column in gridView1.Columns) |
| | | { |
| | | if (column.Width > 500) |
| | | column.Width = 500; |
| | | if (column.Width > maxWidth) |
| | | column.Width = maxWidth; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置选项卡 |
| | | /// </summary> |