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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -