MVC3中使用的jqGrid的背景颜色怎么修改
2018-09-29 · 百度知道官方认证企业
腾讯电脑管家
腾讯电脑管家是腾讯公司推出的免费安全管理软件,能有效预防和解决计算机上常见的安全风险,并帮助用户解决各种电脑“疑难杂症”、优化系统和网络环境,是中国综合能力最强、最稳定的安全软件。
向TA提问
关注
展开全部
UsersGrid = new JQGrid
{
Columns = new List<JQGridColumn>()
{
new JQGridColumn { DataField = "UserID",
// always set PrimaryKey for Add,Edit,Delete operations
// if not set, the first column will be assumed as primary key
PrimaryKey = true,
Editable = false,
HeaderText="序号",
Width = 50,
CssClass="_color"
},
new JQGridColumn { DataField = "UserName",
Editable = true,
Width = 100,
DataFormatString = "{0:d}" ,
HeaderText="用户名"},
new JQGridColumn { DataField = "Password",
Editable = true,
Width = 100 ,
HeaderText="口令"},
new JQGridColumn { DataField = "Description",
Editable = true,
Width = 75 ,
HeaderText="描述"}
},
//设置背景颜色
Width = Unit.Pixel(640) ,
Height = Unit.Pixel(500)
};
UsersGrid.ToolBarSettings.ShowRefreshButton = true;
{
Columns = new List<JQGridColumn>()
{
new JQGridColumn { DataField = "UserID",
// always set PrimaryKey for Add,Edit,Delete operations
// if not set, the first column will be assumed as primary key
PrimaryKey = true,
Editable = false,
HeaderText="序号",
Width = 50,
CssClass="_color"
},
new JQGridColumn { DataField = "UserName",
Editable = true,
Width = 100,
DataFormatString = "{0:d}" ,
HeaderText="用户名"},
new JQGridColumn { DataField = "Password",
Editable = true,
Width = 100 ,
HeaderText="口令"},
new JQGridColumn { DataField = "Description",
Editable = true,
Width = 75 ,
HeaderText="描述"}
},
//设置背景颜色
Width = Unit.Pixel(640) ,
Height = Unit.Pixel(500)
};
UsersGrid.ToolBarSettings.ShowRefreshButton = true;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询