An indooGrid Documented Class Library

dataAccess.findParents Method 

Returns IDs for parent elements. Useful when

[Visual Basic]
Public Function findParents( _
   ByVal Int64 As Long, _
   ByVal String As String, _
   ByVal String As String, _
   ByVal String As String, _
   Optional ByVal String As String = "", _
   Optional ByVal Boolean As Boolean = False _
) As ArrayList
[C#]
public ArrayList findParents(
   Int64 id,
   String tableName,
   String idColumnName,
   String idRefColumnName,
   String sqlWhere,
   Boolean cache
);

Parameters

id
ID of child element
tableName
Name of database table.
idColumnName
Name of the column with IDs
idRefColumnName
Name of the column with parent ID.
sqlWhere
Use filter and make table smaller
cache

See Also

dataAccess Class | Indoo.Data Namespace