Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After setting up the tables and queries that you will use, you need to configure one of the tables as the DataSource in the DataGridWindow component configuration (1 in image below).

To manipulate a DataGrid control in CodeBehind, th   e the best approach is to use the Control Name field (2 in image below), for the configuration dialog.

...

Then, you can use that given name to get control of the element and change its properties. 

Code Block
TDataGridWindow grid = CurrentDisplay.GetDataGrid("Employees"); 
grid.GridControl.SetColumnSparkline("Orders", this.SparklineCollectionDelegate, style);
// SetColumnSparkline parameters - fieldName (string)
//	               - populateCallback (SparklineCollectionDelegate)
//	               - style (string)

...

A delegate is an object which refers to a method or you can say consider it is as a reference type variable that can hold holds a reference to the methodsa method. It provides a way which tells to know which method is to be called when an event is triggered. 

Note

A delegate will call only a method which agrees with its signature and return type. A method can be a static method associated with a class or can be an instance method associated with an object, it doesn’t matter.

...