Ver Mensaje Individual
Antiguo 20-feb-2008, 11:57   #5 (permalink)
juanutcm
juanutcm está en el buen camino
 
Avatar de juanutcm
 
Fecha de Ingreso: marzo-2005
Mensajes: 194
Enviar un mensaje por MSN a juanutcm
Solucion DateTimePicker en DataGridView Parte IV

Código:
Public Sub PrepareEditingControlForEdit(ByVal selectAll As Boolean) _
         Implements IDataGridViewEditingControl.PrepareEditingControlForEdit
 
         ' No preparation needs to be done.
 
     End Sub
 
     Public ReadOnly Property RepositionEditingControlOnValueChange() _
         As Boolean Implements _
         IDataGridViewEditingControl.RepositionEditingControlOnValueChange
 
         Get
             Return False
         End Get
 
     End Property
 
     Public Property EditingControlDataGridView() As DataGridView _
         Implements IDataGridViewEditingControl.EditingControlDataGridView
 
         Get
             Return dataGridViewControl
         End Get
         Set(ByVal value As DataGridView)
             dataGridViewControl = value
         End Set
 
     End Property
 
     Public Property EditingControlValueChanged() As Boolean _
         Implements IDataGridViewEditingControl.EditingControlValueChanged
 
         Get
             Return valueIsChanged
         End Get
         Set(ByVal value As Boolean)
             valueIsChanged = value
         End Set
 
     End Property
 
     Public ReadOnly Property EditingControlCursor() As Cursor _
         Implements IDataGridViewEditingControl.EditingPanelCursor
 
         Get
             Return MyBase.Cursor
         End Get
 
     End Property
 
     Protected Overrides Sub OnValueChanged(ByVal eventargs As EventArgs)
 
         ' Notify the DataGridView that the contents of the cell have changed.
         valueIsChanged = True
         Me.EditingControlDataGridView.NotifyCurrentCellDirty(True)
MyBase.OnValueChanged(eventargs)
 
     End Sub
 
 End Class
Espero le sea de ultilidad a alguien como lo fue para mi...

No se olviden de calificar el tema por fas ...
__________________
L.C.I. Juan Jesús

--- El sabio no dice nunca todo lo que piensa, pero siempre piensa todo lo que dice. ---
juanutcm está desconectado   Responder Citando