Dev的 spreadsheetControl 控件怎么设置单元格只读
1个回答
展开全部
using DevExpress.Spreadsheet;
spreadsheetControl1.CreateNewDocument();
spreadsheetControl1.BeginUpdate();
Range range = spreadsheetControl1.Document.Range["A1:C5"];//A1:C5要填充的位置。
range.Merge();
range.FillColor = DevExpress.Utils.DXColor.Beige;
range.Value = "Hello, World!";
range.Alignment.Horizontal = SpreadsheetHorizontalAlignment.Center;
range.Alignment.Vertical = SpreadsheetVerticalAlignment.Center;
spreadsheetControl1.EndUpdate();
spreadsheetControl1.CreateNewDocument();
spreadsheetControl1.BeginUpdate();
Range range = spreadsheetControl1.Document.Range["A1:C5"];//A1:C5要填充的位置。
range.Merge();
range.FillColor = DevExpress.Utils.DXColor.Beige;
range.Value = "Hello, World!";
range.Alignment.Horizontal = SpreadsheetHorizontalAlignment.Center;
range.Alignment.Vertical = SpreadsheetVerticalAlignment.Center;
spreadsheetControl1.EndUpdate();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询