Ver Mensaje Individual
  #16 (permalink)  
Antiguo 31/07/2012, 16:36
Avatar de Dradi7
Dradi7
 
Fecha de Ingreso: junio-2008
Ubicación: Peru - Lima
Mensajes: 1.518
Antigüedad: 15 años, 11 meses
Puntos: 220
Respuesta: filtrar combox dentro de datagridview vb net

revisando el codigo en esta parte tienes

Código vb:
Ver original
  1. Private sub dgDatos_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) Handles dgDatos.EditingControlShowing
  2. * * *
  3. * * *If TypeOf e.Control Is DataGridViewComboBoxEditingControl Then ' Validando si el control es de tipo combobox edit
  4. * * * *
  5. * * * * If e.ColumnIndex = 0 ' Valida si el index es igual al combo primario en donde vas a realizar el filtro
  6. * * * * Dim CellTextBox As DataGridViewComboBoxEditingControl = TryCast(e.Control, DataGridViewComboBoxEditingControl)
  7. * * * * RemoveHandler CellTextBox.SelectionChangeCommitted, AddressOf CellTextBox_SelectionChangeCommited
  8. * * * * AddHandler CellTextBox.SelectionChangeCommitted, AddressOf CellTextBox_SelectionChangeCommited
  9. * * *End If
  10. * * *End If
  11. * * *
  12. End Sub
__________________
La clave de todo triunfador es eliminar todas sus excusas y sus limitaciones