C# 在GridView DevExpress中编辑标题和标题
我在devExpress的GridView中添加了标题和标题:C# 在GridView DevExpress中编辑标题和标题,c#,asp.net,gridview,C#,Asp.net,Gridview,我在devExpress的GridView中添加了标题和标题: settings.Settings.ShowGroupPanel = true; settings.Settings.ShowTitlePanel = true; 您能告诉我如何添加标题和编辑标题吗,因为它显示 将列标题拖到此处,按该列分组 这是我的GridView代码: @Html.DevExpress().GridView(settings => { settings.Name
settings.Settings.ShowGroupPanel = true;
settings.Settings.ShowTitlePanel = true;
您能告诉我如何添加标题和编辑标题吗,因为它显示
将列标题拖到此处,按该列分组
这是我的GridView代码:
@Html.DevExpress().GridView(settings =>
{
settings.Name = "GridView";
settings.KeyFieldName = "Id";
settings.SettingsBehavior.AllowSelectByRowClick = true;
settings.SettingsBehavior.AllowFocusedRow = true;
settings.Width = Unit.Percentage(100);
settings.SettingsBehavior.AllowSelectSingleRowOnly = true;
settings.Settings.ShowGroupPanel = true;
settings.Settings.ShowTitlePanel = true;
settings.Settings.ShowFooter = true;
settings.ClientSideEvents.RowClick = "function(s, e){rowSelected(s, e)}";
settings.Columns.Add("CodeArticle");
settings.Columns.Add("Prix").Width = Unit.Pixel(200); ;
settings.Columns.Add("Designation");
settings.CommandColumn.Visible = true;
}).Bind(Model).GetHtml()
settings.SettingsText.Title=“列出文章”;
settings.SettingsText.GroupPanel=“列出文章” 您有影响元素外观和功能的不同主要成员:
//Visibility:
myDevExpressGrid.Settings.ShowTitlePanel="true";
//Contents:
myDevExpressGrid.SettingsText.Title = "My Title";
//Style:
myDevExpressGrid.Styles.TitlePanel.Border.....;
myDevExpressGrid.Styles.TitlePanel.BackColor....;
myDevExpressGrid.Styles.TitlePanel.....
//You have a lot of different choices to custom your Title
//Template:
myDevExpressGrid.Templates.Titlepanel...;
//Same that Styles, you have a lot of different choices to custom it