BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridDataBoundGrid1_CurrentCellValidating(object sender, System.ComponentModel.CancelEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; GridStyleInfo style = this.gridDataBoundGrid1.Binder.InternalColumns[cc.ColIndex-1].StyleInfo; if(cc.Renderer.ControlValue is DateTime) { string format = style.Format; if(format != "") { try { DateTimeFormatInfo dtf = new DateTimeFormatInfo(); dtf.ShortDatePattern = format; DateTime dt = DateTime.Parse(this.gridDataBoundGrid1.CurrentCell.Renderer.ControlText, dtf); this.gridDataBoundGrid1.CurrentCell.Renderer.Control.Text = dt.ToString(); Console.WriteLine(dt.ToString()); } catch { MessageBox.Show("bad date"); e.Cancel = true; } } } }