-
Hello,
To provide you with the most suitable solution, I need to better understand your task. Would you please provide me with a screenshots to illustrate the desired result? It will allow us to find a precise solution for you much faster.
I hope to hear from you soon.We want to place an icon in the Grid HeaderPanel here:
Because we have it set up to provide a right-click menu:
Hi,
Form what I gather, you need to set an icon in the indicator column header. If so, you need to manually draw the required icon in the GridView.CustomDrawRowIndicator event handler. For example:
[C#] private void GridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
{
if (e.Info.Kind == DevExpress.Utils.Drawing.IndicatorKind.Header)
{
e.DefaultDraw();
e.Handled = true;
e.Cache.DrawImage(Properties.Resources.InfoIcon, e.Info.Bounds);
}
}
Please try this approach and let us know your results.
-
Properties.Resources.InfoIcon does not resolve to anything – however, by replacing it with DevExpress.Images.ImageResourceCache.Default.GetImage("images/support/info_16x16.png") it now works perfectly.
Thanks for the swift response.
You are always welcome.