| | |
Checkbox Value in DataGridView
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
I need to update a cell with the Value from another cell
when a checkbox in the grid is checked but i need it to
update on clicking the checkbox
The only way i have is to do it on CellEndEdit but this requires the user to change cell first
My Code:
when a checkbox in the grid is checked but i need it to
update on clicking the checkbox
The only way i have is to do it on CellEndEdit but this requires the user to change cell first
My Code:
Private Sub dgData_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgData.CellEndEdit ' MsgBox(dgData.Rows(e.RowIndex).Cells(e.ColumnIndex).Value) If dgData.Rows(e.RowIndex).Cells(e.ColumnIndex).Value = "True" Then dgData.Rows(e.RowIndex).Cells("DespQty").Value = dgData.Rows(e.RowIndex).Cells("Stock").Value Else dgData.Rows(e.RowIndex).Cells("DespQty").Value = 0 End If End Sub
![]() |
Similar Threads
- checkbox in datagridview c# (C#)
- hide checkbox in grid appropriately (ASP.NET)
- recordset from multiple checkbox values (ASP)
- checkbox values (JSP)
- Adding a checkbox column dynamically (C#)
Other Threads in the VB.NET Forum
- Previous Thread: Mysql help
- Next Thread: Screen Grab a Hidden Fom
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add application arithmetic array assignment basic binary bing box button buttons click code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists file-dialog firewall folder google hardcopy image images isnumericfuntioncall login math memory mobile module ms msaccess mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox1 port print printpreview problemwithinstallation project record regex reports" reuse right-to-left save savedialog serial sqldatbase storedprocedure string temp text textbox timer toolbox updown useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf xml





