501
C, C++, C#, Java, Visual Basic, HTML, PHP, CSS, Javascript, Ajax, Joomla, MySql y más / Re:actualizar datagridview desde textbox Visual Basic trasladar cambios base datos
« en: 18 de Abril 2017, 19:01 »
Buenas esto podría ser un ejemplo donde se actualizan ciertos campos a partir de valores contenidos en textboxes:
Código: [Seleccionar]
Dim i = subGridView.CurrentRow.Index
With subGridView
.Rows(i).Cells("Material").Value = txtMaterial.Text
.Rows(i).Cells("Description").Value = txtDescription.Text
.Rows(i).Cells("UoM").Value = txtUoM.Text
.Rows(i).Cells("Quantity").Value = txtQuantity.Text
.Rows(i).Cells("Weight").Value = txtWeight.Text
.Rows(i).Cells("Price").Value = txtPrice.Text
.Rows(i).Cells("Total_Weight").Value = txtTotalWeight.Text
.Rows(i).Cells("Total_Price").Value = txtTotalPrice.Text
End With