here is the coding for creating a table with book name, author name, isbn , tile etc,........

in the below coding i need the insert , retrieve, and update coding as coding

DataGridView1.ColumnCount = 4
        DataGridView1.ColumnHeadersVisible = True
        Dim colhdrstyle As New DataGridViewCellStyle
        DataGridView1.ColumnHeadersDefaultCellStyle = colhdrstyle
        DataGridView1.Columns(0).Name = "bookname"
        DataGridView1.Columns(1).Name = "isbn num"
        DataGridView1.Columns(2).Name = "title"
        DataGridView1.Columns(3).Name = "author"
Re: adding table values in datagridview to database usnig coding 80 80

The code you provided just sets column and header properties for the datagridview. You need to create a dataset/datatable and set the datatable as the source for your datagridview.

You might want to check out my Oct. 14 post on this thread >>>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.