Urgente
Publicado por Helena (4 intervenciones) el 27/09/2008 20:11:15
Hola a Todos!
Estoy utilizando el siguiente codigo para guardar los campos de un datagridview pero me sale el siguiente error: "Update requiere que UpdateCommand sea válido cuando se pasa la colección DataRow con filas modificadas. "
Private Sub Actualizar(Optional ByVal bcargar As Boolean = True)
If Not bs.DataSource Is Nothing Then
OleDbDataAdapter.Update(CType(bs.DataSource, DataTable))
If bcargar Then
CargarRegistros("Select nombre,fechanac,telefono,celularP,celularM,correoelectronico, mensualidad,estadopago From Maternal", dbmaternal)
End If
End If
End Sub
De antemano muchas gracias
Estoy utilizando el siguiente codigo para guardar los campos de un datagridview pero me sale el siguiente error: "Update requiere que UpdateCommand sea válido cuando se pasa la colección DataRow con filas modificadas. "
Private Sub Actualizar(Optional ByVal bcargar As Boolean = True)
If Not bs.DataSource Is Nothing Then
OleDbDataAdapter.Update(CType(bs.DataSource, DataTable))
If bcargar Then
CargarRegistros("Select nombre,fechanac,telefono,celularP,celularM,correoelectronico, mensualidad,estadopago From Maternal", dbmaternal)
End If
End If
End Sub
De antemano muchas gracias
Valora esta pregunta


0