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
Post a Comment