This example demonstrates how to add a record copy function to the grid by adding a custom button to the
DbNetGrid toolbar using the
addToolbarButton method. The button is used in conjunction with the
onInsertInitialize and
executeSingletonQuery to default the values for a new record to those of the currently selected record in the grid. The
onToolbarConfigured event is used to enabled/disable the copy button based on whether any rows have been selected.