Active Query Builder support area

Customize DatabaseSchemaTree Entries

Avatar
  • updated
  • Completed
Hello,

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
Avatar
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);
};

Avatar
pdv-software
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.
Avatar
Andrey Zavyalov, PM
Hello, Christian,

There are some customization options? What exactly you want to customize?