Windows form, and here is some code. Thank you for your help.
Private Sub mycombo2_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles mycombo2.SelectedIndexChanged
IDvalue = Me.DG_punch.Item(Me.DG_punch.CurrentRowIndex, 1)
If mycombo2.Text = "Closed" Then
Dim currentCell As DataGridCell
Dim currentCellData As String
currentCell = DG_punch.CurrentCell
currentCell.ColumnNumber = 8
DG_punch(currentCell.RowNumber, currentCell.ColumnNumber) = Now
Else
Dim currentCell As DataGridCell
Dim currentCellData As String
currentCell = DG_punch.CurrentCell
currentCell.ColumnNumber = 8
DG_punch(currentCell.RowNumber, currentCell.ColumnNumber) =
System.DBNull.Value
End If
Steve
"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message
news:ES**************@cpmsftngxa10.phx.gbl...
Hi steve
Is it webfrom or windows form, would you post a snippet of your code ?
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC