We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

MultiColumnTreeView with FilterBar

How can I set a filter bar below the column header row (or in the column header itself) in a MultiColumnTreeView?

It should look like the FilterBar in the GridGroupingControl.


1 Reply

LS Lingaraj S Syncfusion Team August 18, 2010 10:34 AM UTC

Hi Jozsef,

Thank you for your interest in Syncfusion products.

By design, MultiColumnTreeView does not allow to add a Filter row and filter in Column. Please try using ComboBox in Application to show the filter behavior in MutiColumnTreeView as shown below.

public Form1()
{
InitializeComponent();
this.multiColumnTreeView1.Paint += new PaintEventHandler(multiColumnTreeView1_Paint);
}
void multiColumnTreeView1_Paint(object sender, PaintEventArgs e)
{
Rectangle rec = this.multiColumnTreeView1.Columns[0].Bounds;
this.comboBoxAdv1.Size = rec.Size;
Point loc = this.multiColumnTreeView1.Location;
this.comboBoxAdv1.Location = new Point(loc.X + rec.Location.X, loc.Y + rec.Location.Y);
this.comboBoxAdv1.Refresh();
}


Refer the sample from following link.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=MutiColumnTree-507330947.zip

Please let me know if you have any queries.

Regards,
Lingaraj S.

Loader.
Live Chat Icon For mobile
Up arrow icon