Click or drag to resize
DataHelperForEachRow Method (DataTable, ActionDataRow, FuncDataRow, Boolean)
Executes the given action for each row in the given DataSet

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static void ForEachRow(
	DataTable dt,
	Action<DataRow> rowAction,
	Func<DataRow, bool> rowCondition = null
)

Parameters

dt
Type: System.DataDataTable
Table with the data
rowAction
Type: SystemActionDataRow
Row action
rowCondition (Optional)
Type: SystemFuncDataRow, Boolean
Row condition to filter rows
See Also