How to enable NULL value selection in DataGridview CalendarColumn?

Ctl. ShowCheckBox = this. IsNullable; if (this.

Value! = null && this. Value!

= DBNull. Value) { if (this. Value is DateTime) { ctl.

Value = (DateTime)this. Value; } else { DateTime dtVal; if (DateTime. TryParse(Convert.

ToString(this. Value), out dtVal)) ctl. Value = dtVal; } if (this.

IsNullable) ctl. Checked = true; } else if (this. IsNullable) { ctl.

Checked = false; }.

Public object EditingControlFormattedValue { get { if (this. ShowCheckBox &&!this. Checked) { return String.

Empty; } else { if (this. Format == DateTimePickerFormat. Custom) { return this.Value.ToString(); } else { return this.Value.

ToShortDateString(); } } } set { string newValue = value as string; if (!String. IsNullOrEmpty(newValue)) { this. Value = DateTime.

Parse(newValue); } else if (this. ShowCheckBox) { this. Checked = false; } } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions