How to add record to datagridview?

M

Mac

I selected records as follows:


rs = New ADODB.Recordset

rs.LockType = ADODB.LockTypeEnum.adLockOptimistic

cn.Open(strcnn)


mykey = "select* from ABC where part = '"& thisform.txtpart.text & "' "

rs = cn.Execute(mkey)

Now I want to add rs to datagridview which is grid on my form.

I would appreciate if someone please reply.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top