Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

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

VB.NET form grid

  • Please log in to reply
No replies to this topic

#1 moto485

moto485

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 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
Else
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 :)

Thanks
  • 0





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