I have created a Form Designer application. You can see the screentshot below. The user can design a screen and save it with a name. When the user saves a form, the application just saves the control's type(textbox,label,button...), name, width,height,location x, location y and etc....
Now, I want to let user save a SQL SELECT STATEMENT into the application, then let user bind the datatable from that SQL SELECT STATEMENT to the controls created by the user.
lets say, user has saved this SELECT statement like below
SELECT ID,NAME, LASTNAME FROM PERSONS
and form created by user has 3 textboxes. How can I bind those to each other?
Can you guys give me any clue?