datagridview not updating automatically in vb.net -
the datagirdview not updating after immediate in inserting records.
private sub updatedgv() using congv oledbconnection = new oledbconnection("provider=microsoft.jet.oledb.4.0;data source=..\library.mdb") dim strgv string = "select * normaltransaction regno='" & txt_registerno.text & "'" dim cmdgv oledbcommand = new oledbcommand(strgv, congv) dim sdagv oledbdataadapter = new oledbdataadapter(cmdgv) dim dsgv dataset = new dataset("gvset") sdagv.fill(dsgv) datagridview1.datasource = dsgv datagridview1.datamember = dsgv.tables(0).tablename end using end sub
please me solve this.
Comments
Post a Comment