locked
Insert programmatically datetime value inside datagrid cell RRS feed

  • Question

  • Hi at all,
    i have datagrid bind to datatime that has one coloumn datetime

    I want that user press space bar inside datagrid cell and i want insert current datetime

    i try so

    If e.KeyCode = Keys.Space Then
      dgrdVisite.Item(dgrdVisite.CurrentRowIndex, 4) = DBNull.Value
      dgrdVisite.Item(dgrdVisite.CurrentRowIndex, 4) = Now.Date.ToShortDateString
    End If
    but i get blank cell
    Friday, April 3, 2009 5:17 PM

Answers

All replies