I want to see if a value is typed in in a field. My code is:
private void dateSeenDateTimePicker_Validating(object sender, CancelEventArgs e)
{
DataColumn str = carTrackerDataSet.Listing.DateSeenColumn; string str1 = str.Table.ToString(); string datum = dateSeenDateTimePicker.Value.ToString(); string huidig = listingBindingSource.Current.ToString(); if (string.IsNullOrEmpty(dateSeenDateTimePicker.Text) )dateSeenDateTimePicker.Value =
DateTime.Today;}
I can't see if there is a vlue in the database and the textbox is always filled.
Replies
Know the answer? Post it — somebody with the same question will find it here.