I have a screen written in VB.NET WinForms, where the goal of it will be to execute SQL commands without the need to open an sql studio.
For simpler commands like delete, update, alter table among others, it already works perfectly. Now, the idea is to create a gridview dynamically when the command is a select. Basically what Management Studio itself does when executing a SELECT statement, creating the columns and populating with the returned data.
I'm using Dapper Framework to run the commands, and the return of it is a "DapperRow" that I can not even get through.
I would like to know a way to create this kind of functionality, that is, execute a SELECT, get the return, and from this return I populate my gridview dynamically with the data returned from SELECT.
Thank you in advance.