using latest version with VS2010...
In the attached picture, how in the heck do I remove the summary caption line where it says "Company Name"?
If it's possibly - which I suspect it is - I'd like to know how to navigate to it via the grid designer and also how to set it in code.
I tried searching the forum first and found this answer/blurb from Mike on a similar question ...
"The good news is, you don't have to. You can just set SummaryFooterCaptionVisible on the band to False."
...but when I try something like this...
ultraGrid1.DisplayLayout.Bands[0].SummaryFooterCaptionVisible =
false
...it does not recogonize the "SummaryFooterCaptionVisible" property.
Thanks,
--mark
Go through the Override object to get to it.
ultraGrid1.DisplayLayout.Bands[0].Override.SummaryFooterCaptionVisible.
Also you can it in general for the grid with ultraGrid1.DisplayLayout.Override.SummaryFooterCaptionVisible
Thanks Matthew...that worked.
Now that I have removed that line...I would like to put the Company Name in the blank area (white rectangle) directly to the left you the total area (in yellow). Is that area exposed via a property?
Thanks
The same holds for the text you want to add to the white rectangle area to the left of the summary.
Something to chew on:
class SummaryFooterCreationFilter : IUIElementCreationFilter{ #region IUIElementCreationFilter Members
public void AfterCreateChildElements(UIElement parent) { if (parent is SummaryFooterUIElement) { TextUIElement t = new TextUIElement(parent, "custom text"); t.Rect = parent.RectInsideBorders; parent.ChildElements.Add(t); } }
public bool BeforeCreateChildElements(UIElement parent) { return false; }
#endregion}
back to your grid on your form set the grid's CreationFilter property:
this.ultraGrid1.CreationFilter = new SummaryFooterCreationFilter();
It appears from the screen shot that your summary is aligned to the right, which means it will take up 1/3 of the width of the band. There's no way to set an explicit width via a property setting, nor is there any property to make the caption onto the summary line.
Both of these things can be accomplished using a CreationFilter, though. There's a customer post on the forums which shows how to do some of this here:
My Creation and Draw Filters Article - Infragistics Forums