Hi
How to remove the line beneath UltraListViewGroup name? I have attached the screenshot for better understanding. The screenshot is having 3 listviews that are getting populated if the data exists in backend.
Please help... Its quite urgent...
Thanks in advance.
Assign an instance of this class to the control's CreationFilter property:public class GroupLineRemoverCreationFilter : IUIElementCreationFilter{ public GroupLineRemoverCreationFilter() { }
void IUIElementCreationFilter.AfterCreateChildElements(UIElement parent) { UltraListViewGroupUIElement groupElement = parent as UltraListViewGroupUIElement; if ( groupElement != null ) { UltraListViewGroupHeaderLineUIElement lineElement = groupElement.GetDescendant( typeof(UltraListViewGroupHeaderLineUIElement) ) as UltraListViewGroupHeaderLineUIElement;
if ( lineElement != null ) groupElement.ChildElements.Remove( lineElement ); } }
bool IUIElementCreationFilter.BeforeCreateChildElements(UIElement parent) { return false; }}
Thanks for sending the code, I tried your code but its not working. The below code is written to create that UltraListViewGroup that is having line beneath "MCC Out Of Service" UltraListViewGroup myUltraListViewGroup = _ctrlControl.AddSystemGroup("System Group"); myUltraListViewGroup .Tag = "MCC Out Of Service"; myUltraListViewGroup .Text = "MCC Out Of Service"; myUltraListViewGroup .HeaderMargins.Top = 5; I just want to remove that line beneath "MCC Out Of Service". Its urgent... Thanks again.