Imports GrapeCity.Win.MultiRow
Private Sub GcMultiRow1_CellEndEdit(ByVal sender As System.Object, ByVal e As CellEndEditEventArgs) Handles GcMultiRow1.CellEndEdit
Dim gcMultiRow As GcMultiRow = TryCast(sender, GcMultiRow)
Dim currentCell As Cell = gcMultiRow.Rows(e.RowIndex).Cells(e.CellIndex)
If e.EditCanceled = False Then
If TypeOf currentCell Is DateTimePickerCell Then
If currentCell.Value Is Nothing Then
currentCell.Value = Date.Now
End If
End If
End If
End Sub
using GrapeCity.Win.MultiRow;
private void gcMultiRow1_CellEndEdit(object sender, CellEndEditEventArgs e)
{
GcMultiRow gcMultiRow = sender as GcMultiRow;
Cell currentCell = gcMultiRow.Rows[e.RowIndex].Cells[e.CellIndex];
if (e.EditCanceled == false)
{
if (currentCell is DateTimePickerCell)
{
if (currentCell.Value == null)
{
currentCell.Value = DateTime.Now;
}
}
}
}