Member Avatar

hey frnds, Firstly I pick the records from the databse into the DataGridView, Then I want that If we made changes to the records in the GridView & Click on Update Button, Changes are Reflected into the Datbase .Plz do reply back the ..

Member Avatar
0
72
Member Avatar

When selecting from DataGridView as program line below: Diameter = DesignationsDataGridView.Rows(e.RowIndex).Cells(0).Value I get following exception message box:- System.ArgumentOutOfRangeException was unhandled Message="Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" If I select 'continue' from message box then I return to datagridview for further attempt. Please can anyone tell me how to deal with this exception? (other than not to click on header, of course)

Member Avatar
0
9
Member Avatar

hi, I have a Gridview like below: ![Gv3](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL0d2My5KUEc%3D/283 "align-left") What I want is: 1) User can click at **LINE** column, for example user click at **M23** and it will redirect to other page. 2) At the other page, it will display something like this: **Please insert countermeasure for M23** where M23 is get from what user click. How can I do that? Here is my code: Dim DBConn As New SqlConnection("server=xxxx;uid=xxxx;pwd=xxxx;database=xxxx") Dim DBCmd As New SqlCommand Dim da As New SqlDataAdapter Dim ds As New DataSet() Dim strtTime As String Dim endTime As String strtTime = DateTime.Today.ToString("yyyy/MM/dd") & " " …

Member Avatar
0
19

The End.