Y
Yog
I am trying to update a date column in dataset from a textbox.
When a date is changed in textbox, the dataset should reflect this,
similarly when the textbox is cleared to null the dataset should reflect
this. This is since i use the "DataViewRowState.ModifiedCurrent" later to
detect the changes for update.
How do we acheive this?.
Currently since i am ignoring nulls, i miss the null condition.
if (this.HIRE_DT.Text.ToString().Trim() != ""){
oRow["HIRE_DT"] =
Convert.ToDateTime(this.HIRE_DT.Text.ToString().Trim());
}
Thank you,
Yog
When a date is changed in textbox, the dataset should reflect this,
similarly when the textbox is cleared to null the dataset should reflect
this. This is since i use the "DataViewRowState.ModifiedCurrent" later to
detect the changes for update.
How do we acheive this?.
Currently since i am ignoring nulls, i miss the null condition.
if (this.HIRE_DT.Text.ToString().Trim() != ""){
oRow["HIRE_DT"] =
Convert.ToDateTime(this.HIRE_DT.Text.ToString().Trim());
}
Thank you,
Yog