1. I'm trying to get the structure of a table without going thru the SQL interface, I want to do it programmatically, so that I can build an interface that will adapt to the changes in the table without knowing the changes. In other words the program will read the structure of the table, and handle it.
Example: you have:
in a table, I'd like to get that information (column name, length, type) from sql using C#.
I'd also need to get a list of the tables that a database has.
The second question is forcing a gridview's current record to move, not with up/down arrows keys, but [Prev] [Next] buttons. I can find which is the current record in a set, but haven't been able to move/change it.