Click or drag to resize
DataHelperGetBoolValue Method (DataRow, String, Boolean)
Gets the bool variable from given DataRow.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static bool GetBoolValue(
	DataRow dr,
	string columnName,
	bool defaultValue = false
)

Parameters

dr
Type: System.DataDataRow
DataRow with the data
columnName
Type: SystemString
Column name
defaultValue (Optional)
Type: SystemBoolean
Default value

Return Value

Type: Boolean
See Also