This example demonstrates how to add the search capability to the detail grid.
Our detail grid with DataControlDetailDescriptor doesn't support searching or filtering in the detail grid. To provide this capability in this sample, we create a UserControl with TextEdit and a button. When the button is clicked, we remember a text value of TextEdit as a searching string. Then, we iterate through all columns of the detail grid and set the FilterString property value to a special expression with a searching string and column name. To highlight the matching string of a cell, we cast InplaceBaseEdit to the InplaceBaseEdit interface and set the HighlightedText property to the searching string value.
Our detail grid with DataControlDetailDescriptor doesn't support searching or filtering in the detail grid. To provide this capability in this sample, we create a UserControl with TextEdit and a button. When the button is clicked, we remember a text value of TextEdit as a searching string. Then, we iterate through all columns of the detail grid and set the FilterString property value to a special expression with a searching string and column name. To highlight the matching string of a cell, we cast InplaceBaseEdit to the InplaceBaseEdit interface and set the HighlightedText property to the searching string value.