Hi. it was great to see the option "ImageOnly", for columns of small width, where only the image is placed in the header, and the "HederText" property was set, for the correct display of the grouping field
GridViewDataColumn column;
column.HeaderText = "Счет";
column.HeaderImage = ...; // some img
column.TextImageRelation = TextImageRelation.Overlay;
GridViewDataColumn column;
column.HeaderText = "";
column.HeaderImage = ...; // some img
column.TextImageRelation = TextImageRelation.Overlay;
it’s impossible to choose one thing, either an ugly header, or a grouping without a description
public RadForm1()
{
InitializeComponent();
this.radGridView1.ViewCellFormatting += radGridView1_ViewCellFormatting;
GridViewTextBoxColumn contactNameColumn = this.radGridView1.Columns["ContactName"] as GridViewTextBoxColumn;
contactNameColumn.HeaderImage = Properties.Resources.AnneDodsworth22;
this.radGridView1.MasterTemplate.ShowGroupedColumns = true;
}
private void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.Row is GridViewTableHeaderRowInfo && e.Column.Name == "ContactName")
{
e.CellElement.DrawText = false;
}
else
{
e.CellElement.ResetValue(LightVisualElement.DrawTextProperty, ValueResetFlags.Local);
}
}
Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.