Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/264.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在GridView DevExpress中编辑标题和标题_C#_Asp.net_Gridview - Fatal编程技术网

C# 在GridView DevExpress中编辑标题和标题

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

我在devExpress的GridView中添加了标题和标题:

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