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 "DataViewRowSta te.ModifiedCurr ent" 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.T ext.ToString(). Trim() != ""){
oRow["HIRE_DT"] =
Convert.ToDateT ime(this.HIRE_D T.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 "DataViewRowSta te.ModifiedCurr ent" 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.T ext.ToString(). Trim() != ""){
oRow["HIRE_DT"] =
Convert.ToDateT ime(this.HIRE_D T.Text.ToString ().Trim());
}
Thank you,
Yog
Comment