Active Query Builder support area

Customize DatabaseSchemaTree Entries

  • updated
  • Completed

is it possible to customize the appearance of items in the DatabaseSchemaTree like you can do with a DataSourceObject or a DataSourceFieldList?

Best regards
Christian Sack
Andrey Zavyalov, PM
Hello, Christian,

There are some customization options? What exactly you want to customize?
There are 2 events in the QueryBuilder in which you can for example modify the text that is displayed for a DataSourceObject and a DataSourceField (CustomDataSource and CustomDataSourceFieldList events). It would be great if there would exists such an event (or events) for the DatabaseSchemaTree.
Please download the latest build.
Now you can handle the custom draw event in Database Schema Tree.
In the form constructor add the following:

((TreeView) queryBuilder1.DatabaseSchemaTree).DrawMode = TreeViewDrawMode.OwnerDrawText;
((TreeView) queryBuilder1.DatabaseSchemaTree).DrawNode += (sender, args) =>
args.DrawDefault = false;
args.Graphics.FillRectangle(Brushes.Red, args.Bounds);