c# - ADODB.Recordset data cannot bind into datagridview -


i wan bind data recordset data grid view, data cannot show in grid view, try count row, there 2 rows of data, cannot bind grid view

if not rs.eof                         datagridview1.datasource = rs     datagridview1.refresh() else     msgbox("record not founds  " & txtsearch.text, msgboxstyle.okonly) end if 

you can't bind datagridview adodb.recordset. if can't change data source ado.net have pre-process recordset datagridview can bind datatable, or alternatively write rows in manually.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -