Now I am doing a project using connecting sting “Provider=Microsoft. OLEDB.4.0; Data Source=C:\Project.mdb; Persist Security Info=False” now I am completed data entry form. Sql Client Dim sadapt1 As Sql Data Adapter Dim cn As Sql Connection Dim ds As Data Table 'BIND THE RECORDS ON THE PAGE LOAD Protected Sub Page_Load(By Val sender As Object, By Val e As System. Load 'SET THE CONNECTION AND BIND TO THE GRIDVIEW cn = New Sql Connection("server=shailu;uid=sa;pwd=;database=delete;") sadapt1 = New Sql Data Adapter("select * from emp", cn) ds = New Data Table sadapt1. Data Bind() End If End Sub 'SET THE ROWINDEX TO EDIT Protected Sub Grid View1_Row Editing(By Val sender As Object, By Val e As System. Value 'do the rest End If End Sub Private Sub datagridview1_Key Up(By Val sender As System. It is working now I want connect a datagrid form nearly it is also completed but I want to view a checkbox in datagrid for “yes or no” what is the code for place the checkbox in datagrid and calendar popup, Using file Thanking you Yours sincerely If any spelling mistakes "sorry........" hi i had added vales in data grid i need to add the vales and display how to do it i need to select values in previous row and values in current row add then display in current row how to do it plz mail me in [email protected]'IMPORTS NAMESPACE FOR THE CONNECTION Imports System. Add(New Data Column("Col1_Others", Get Type(String))) dt. Read() '---For each row g_Temp Staff Key = "0" Temp Staff Key = reader("staff_key") 'will not null g_selectstaffkey = Temp Staff Key g_selectpostkey = reader("post_key") g_selectstaffname = RTrim(reader("name_eng")) g_selectpostcode = RTrim(reader("post_code")) Using conn3 As New System. Add(New Data Column("Col1_Shift Type", Get Type(Int32))) dt. Add(New Data Column("Col1_Submitted By", Get Type(Int32))) Dim dr As Data Row While reader.
But I have no idea how to get those value when doing Row Editing & Row Updating. Bind Data() End Sub Protected Sub Grid View1_Row Updating(By Val sender As Object, By Val e As Grid View Update Event Args) 'Retrieve the table from the session object. Could someone please let me know how to get the selected row? Data Grid View Cell Event Args) Handles Data Grid View1. Value End Sub hello i agree with shailu answer if shailu we write ur code like this....... Data Grid View Cell Event Args) Handles Data Grid View1. Value End Sub Best Regards,:) Salman Im trying to display data in a datagrid then once a row is selected show a different column of the database in a text box.