-
Data Grid Question
Hi, I have a data bound grid that is using a custom tablestyle. When the User adds a new record to my grid, I need to display a default date value in one of the cells in the addnew line of the grid. ie the add new row of the grid gets focus and a cell in that row automatically getts filled with a date.
-
erm got it I thinks
Code:
Private Sub grdDetail_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles grdDetail.CurrentCellChanged
If Me.grdDetail(Me.grdDetail.CurrentRowIndex, 1).ToString() = "" Then
grdDetail(Me.grdDetail.CurrentRowIndex, 1) = Me.txtDefaultDate.Text
End If
End Sub