Click here to Skip to main content
16,006,749 members
Home / Discussions / C#
   

C#

 
QuestionHow to draw on nonclient area of a form ? Pin
Andres Coder3-Mar-04 5:11
Andres Coder3-Mar-04 5:11 
AnswerRe: How to draw on nonclient area of a form ? Pin
Andres Coder3-Mar-04 5:30
Andres Coder3-Mar-04 5:30 
AnswerRe: How to draw on nonclient area of a form ? Pin
Heath Stewart3-Mar-04 6:09
protectorHeath Stewart3-Mar-04 6:09 
GeneralRe: How to draw on nonclient area of a form ? Pin
Andres Coder3-Mar-04 7:01
Andres Coder3-Mar-04 7:01 
GeneralRe: How to draw on nonclient area of a form ? Pin
Heath Stewart3-Mar-04 8:40
protectorHeath Stewart3-Mar-04 8:40 
GeneralRe: How to draw on nonclient area of a form ? Pin
Andres Coder3-Mar-04 8:44
Andres Coder3-Mar-04 8:44 
GeneralConnecting to MySQL with ODBC Pin
sps-itsec463-Mar-04 3:12
sps-itsec463-Mar-04 3:12 
GeneralRe: Connecting to MySQL with ODBC Pin
Heath Stewart3-Mar-04 6:07
protectorHeath Stewart3-Mar-04 6:07 
The schema that you get is relative to the result set. If you want to have a specific schema that matches your tables, I suggest you create a typed DataSet by using either the xsd.exe utility that ships with the .NET Framework SDK to create a typed DataSet class from an XML Schema, or add a new DataSet class in Visual Studio .NET and either re-create your tables (and optionally your keys and relationships), or drag and drop your tables from the Server Explorer after adding a connection object to your database.

Use that typed DataSet in your OdbcDataAdapter calls (like Fill) and in your queries. If you're using the designer in VS.NET for a DataGrid or some other data-bound control, it gives you nice design-time support for specific table names and columns. If also provides faster access to data when using the typed table and column names because they reference the DataTable and DataColumn objects directly, instead of using a string name that requires several looks ups.

If you don't want to use a typed DataSet, you can also add a columns to your TableMapping property. See the DataTableMapping class and its ColumnMappings property documentation in the .NET Framework SDK for more information.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Connecting to MySQL with ODBC Pin
sps-itsec463-Mar-04 8:41
sps-itsec463-Mar-04 8:41 
GeneralMail samples Pin
jimaya3-Mar-04 2:25
jimaya3-Mar-04 2:25 
GeneralRe: Mail samples Pin
joan_fl3-Mar-04 5:24
joan_fl3-Mar-04 5:24 
QuestionGUI Unit Testing in C#? Pin
Chris Gruber3-Mar-04 1:59
Chris Gruber3-Mar-04 1:59 
GeneralAPI question Pin
neilxp2-Mar-04 22:43
neilxp2-Mar-04 22:43 
GeneralRe: API question Pin
Corinna John2-Mar-04 23:04
Corinna John2-Mar-04 23:04 
QuestionHow can I type cast an string as an htmlTable ? Pin
MasudM2-Mar-04 20:34
MasudM2-Mar-04 20:34 
AnswerRe: How can I type cast an string as an htmlTable ? Pin
Corinna John2-Mar-04 22:11
Corinna John2-Mar-04 22:11 
GeneralRe: How can I type cast an string as an htmlTable ? Pin
Heath Stewart3-Mar-04 6:00
protectorHeath Stewart3-Mar-04 6:00 
AnswerRe: How can I type cast an string as an htmlTable ? Pin
MasudM5-Mar-04 1:31
MasudM5-Mar-04 1:31 
QuestionHow To convert Xml to Html Pin
Inam2-Mar-04 18:01
Inam2-Mar-04 18:01 
AnswerRe: How To convert Xml to Html Pin
Hojtha Karlsson2-Mar-04 22:15
Hojtha Karlsson2-Mar-04 22:15 
GeneralClickety Pin
Mazdak3-Mar-04 5:30
Mazdak3-Mar-04 5:30 
AnswerRe: How To convert Xml to Html Pin
Heath Stewart3-Mar-04 3:59
protectorHeath Stewart3-Mar-04 3:59 
GeneralAbout Dispose method Pin
Andres Coder2-Mar-04 17:29
Andres Coder2-Mar-04 17:29 
GeneralRe: About Dispose method Pin
Meysam Mahfouzi2-Mar-04 18:13
Meysam Mahfouzi2-Mar-04 18:13 
GeneralRe: About Dispose method Pin
Heath Stewart3-Mar-04 3:45
protectorHeath Stewart3-Mar-04 3:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.