Jump to content

Check out our Community Blogs


Member Since 22 Feb 2012
Offline Last Active Feb 23 2012 03:14 PM

Topics I've Started

DataGrid - When check box ticked would like date to appear in the next coloumn VB.Net

22 February 2012 - 09:30 PM

Hi, I am new to VB.Net and am just learning.. I have a DataGridView in a winform project and have two columns "PO_Created", "PO_Date" (PO_Date being a check box) I would like to know how to have PO_Date populate a date when the check box is ticked.
Dragging a check box and a text box on the form and placing the code below in the checkbox control

If CheckEdit1.Checked = True Then
TextBox1.Text = System.DateTime.Today.ToShortDateString
TextBox1.Text = " "
End If

is what I want but I don't know how to do this in a datagrid if someone could give me a hand on this topic that would great :)


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download