viviansm

viviansm

  • NA
  • 21
  • 0

Select a Specific row in datagrid

Jun 14 2004 4:31 AM
Good day. I am a beginner in VB.NET. Please help me in VB.Net coding for the following problems. Q1. I have created 2 forms - a customer form and a search form. When the user click on the Search button in the customer form , the search form will show. The user can search for the customer details either by keying the customer ID(txtCustID) or customer last name(cboCustLastName). The details will show in the datagrid as you can see in the attachment. So far everything is working fine , but how do I write the code if the user double click on the specific row in the datagrid and the details of that selected customer will appear on the customer form so that the user can do the update or delete of that customer in the customer form? Q2. In the customer form, is it possible to do something like this : when the user enter the IC No: 860608-07-5694 which 86 is the year, 06 is month and 08 is day. And this will auto generate The Date of Birth : 08/06/1986. Have a nice day! Thanks and regards, Viv

Answers (3)