GetValueFromRowAsString

Method GetValueFromRowAsString Method

Class :CA.Blocks.DataAccess.DataHelper

Namespace :CA.Blocks.DataAccess

Assembly : CA.Blocks.DataAccess.dll

Overloads

StaticGetValueFromRowAsString(System.Data.DataRow,System.String,System.Boolean)
StaticGetValueFromRowAsString(System.Data.DataRow,System.Int32,System.Boolean)
StaticGetValueFromRowAsString(System.Data.DataRow,System.Data.DataColumn,System.Boolean)
StaticGetValueFromRowAsString(System.Data.DataRow,System.String,System.Boolean)

Will get the data value from the row as a string. The return value will be set to either null or and empty string depending on the value of ReturnNullAsEmptyString

Parameters
NameTypeDescription
drSystem.Data.DataRow
sColumnNameSystem.String
returnNullAsEmptyStringSystem.BooleanOptional
Returns

System.String

StaticGetValueFromRowAsString(System.Data.DataRow,System.Int32,System.Boolean)

Will get the data value from the row as a string. The return value will be set to either null or and empty string depending on the value of ReturnNullAsEmptyString

Parameters
NameTypeDescription
drSystem.Data.DataRow
columnOrderSystem.Int32
returnNullAsEmptyStringSystem.BooleanOptional
Returns

System.String

StaticGetValueFromRowAsString(System.Data.DataRow,System.Data.DataColumn,System.Boolean)

Parameters
NameTypeDescription
drSystem.Data.DataRow
columnSystem.Data.DataColumn
returnNullAsEmptyStringSystem.BooleanOptional
Returns

System.String