There are special requirements in some special projects, such as the need to disable specific lines. At this time the general properties of Gridcontrol are not implemented, and some changes need to be made. At this time you need to go to devexpress official website to find some information (official website https://www.devexpress.com), this case from the official website reference.
1. Disable a specific line:
After running, the strikethrough behavior disables the line, and cannot be modified.
2. Binding Data Code:
DataTable TBL =NewDataTable (); Tbl. Columns.Add ("Name",typeof(string)); Tbl. Columns.Add ("ID",typeof(int)); Tbl. Columns.Add (" Number",typeof(int)); Tbl. Columns.Add ("Date",typeof(DateTime)); for(inti =0; i < RowCount; i++) tbl. Rows.Add (New Object[] {String.Format ("name{0}", i), I,3-I, DateTime.Now.AddDays (i)}); returnTbl
3. Source code Download Link: http://download.csdn.net/detail/kehaigang29/8859781
DevExpress Table Control Gridcontrol Special Application (i)--Implement disable specific lines (with source code)