Provides a reverse search of Rows by data objects, already inserted to the Grid.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: (


public Grid..::..GridDataObjects DataObjects { get; }
Visual Basic
Public ReadOnly Property DataObjects As Grid..::..GridDataObjects
Visual C++
property Grid..::..GridDataObjects^ DataObjects {
	Grid..::..GridDataObjects^ get ();
member DataObjects : Grid..::..GridDataObjects with get

Property Value

Type: Grid..::..GridDataObjects


If you work with reference-type data objects, you can use convenient grid features to search row or rows that contain the required data object.

You can get a data object that is associated with a row by calling Row.DataObject property. The same data object may be contained in multiple grid rows. You can get them using Grid.DataObjects.Find(object) method. If you need only the first row, you can use Grid.DataObjects.FindFirstRow(object) method.

 Copy imageCopy
public void ReverseSearchExample(Grid grid)
    //Add some products...
    Product product1 = new Product();
    Product product2 = new Product();

    //The first found row (not the first visible - just the first found!)
    Row row1 = grid.DataObjects.FindFirstRow(product1);
    //Enumerate all rows, related to the data object
    foreach (Row row in grid.DataObjects.Find(product1))
        //Do something here

See Also