dateTimePicker.NullString = "";
protected override void OnInitialize(int rowIndex, int colIndex)
{
// Immeditaly switch into editing mode when cell is initialized.
GridStyleInfo style = Grid.Model[rowIndex, colIndex];
if (style.Text.Length > 0 && !Convert.IsDBNull(style.CellValue))
dateTimePicker.Value = (DateTime)style.CellValue;
else
dateTimePicker.IsNullDate = true;
CurrentCell.BeginEdit();
base.OnInitialize(rowIndex, colIndex);
dateTimePicker.ValueChanged += new EventHandler(datePicker_ValueChanged);
dateTimePicker.ShowDropButton = style.ShowButtons != GridShowButtons.Hide;
dateTimePicker.Update();
}
dateTimePicker.NullString = "";
protected override void OnInitialize(int rowIndex, int colIndex)
{
// Immeditaly switch into editing mode when cell is initialized.
GridStyleInfo style = Grid.Model[rowIndex, colIndex];
if (style.Text.Length > 0 && !Convert.IsDBNull(style.CellValue))
dateTimePicker.Value = (DateTime)style.CellValue;
else
dateTimePicker.IsNullDate = true;
CurrentCell.BeginEdit();
base.OnInitialize(rowIndex, colIndex);
dateTimePicker.ValueChanged += new EventHandler(datePicker_ValueChanged);
dateTimePicker.ShowDropButton = style.ShowButtons != GridShowButtons.Hide;
dateTimePicker.Update();
}