Click here to Skip to main content
15,898,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: difference between .NET remoting and shared/private assembly? Pin
liyang yu12-Jan-05 4:49
liyang yu12-Jan-05 4:49 
GeneralRe: difference between .NET remoting and shared/private assembly? Pin
Steve Maier12-Jan-05 5:42
professionalSteve Maier12-Jan-05 5:42 
GeneralLinking HxS Help file to a C# application Pin
mikey_g12-Jan-05 3:49
mikey_g12-Jan-05 3:49 
GeneralDataSet Visual Desinger Persistance Pin
Lyhr12-Jan-05 2:54
Lyhr12-Jan-05 2:54 
GeneralAddNew() and default values Pin
Jonckheere12-Jan-05 2:31
Jonckheere12-Jan-05 2:31 
GeneralRe: AddNew() and default values Pin
turbochimp12-Jan-05 5:38
turbochimp12-Jan-05 5:38 
GeneralRe: AddNew() and default values Pin
Jonckheere12-Jan-05 19:29
Jonckheere12-Jan-05 19:29 
GeneralRe: AddNew() and default values Pin
turbochimp13-Jan-05 3:25
turbochimp13-Jan-05 3:25 
The example I provided was simply to indicate that default values were available at design-time for the System.Data.DataColumn class.

If you want to determine the characteristics of columns in your database at runtime, there are a number of ways to do it. You could use SQL to inspect the system tables in your database directly or you could use something like System.Data.OleDb.OleDbConnection.GetOleDbSchemaTable to retrieve tons of information about your physical database.

For instance, to retrieve column info, you might use (where conn is an OleDbConnection):

DataTable columnInfo = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, new object[4]{null, null, "MyTable", null});

The call uses the OleDbSchemaGuid class to specify the type of database object you're trying to fetch information about, and the object array is a list of restriction values (like a filter) that determines which specific instance(s) of the database object type you want to investigate.

Best of luck.

The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

GeneralUI look as VS .NET Editor Pin
Md Saleem Navalur12-Jan-05 2:20
Md Saleem Navalur12-Jan-05 2:20 
GeneralRe: UI look as VS .NET Editor Pin
Jesse Squire12-Jan-05 6:43
Jesse Squire12-Jan-05 6:43 
GeneralRe: UI look as VS .NET Editor Pin
Mathew Hall13-Jan-05 23:21
Mathew Hall13-Jan-05 23:21 
GeneralCreate Click event in C# Pin
itssuk12-Jan-05 1:30
itssuk12-Jan-05 1:30 
GeneralRe: Create Click event in C# Pin
Paul Lyons12-Jan-05 2:28
Paul Lyons12-Jan-05 2:28 
GeneralRe: Create Click event in C# Pin
itssuk12-Jan-05 19:18
itssuk12-Jan-05 19:18 
GeneralRe: Create Click event in C# Pin
Paul Lyons13-Jan-05 15:05
Paul Lyons13-Jan-05 15:05 
GeneralRe: Create Click event in C# Pin
Member 164882912-Jan-05 2:29
Member 164882912-Jan-05 2:29 
GeneralRe: Create Click event in C# Pin
Stefan Troschuetz12-Jan-05 2:35
Stefan Troschuetz12-Jan-05 2:35 
GeneralReplacing plus minus signs for TreeView Pin
eliea12-Jan-05 1:23
eliea12-Jan-05 1:23 
GeneralInvalid Parameter used Pin
Snowjim12-Jan-05 0:59
Snowjim12-Jan-05 0:59 
GeneralRe: Invalid Parameter used Pin
Snowjim12-Jan-05 3:33
Snowjim12-Jan-05 3:33 
Generaldrag and drop images Pin
rathishps12-Jan-05 0:38
rathishps12-Jan-05 0:38 
QuestionHandle Bitmaps faster? Pin
Snowjim12-Jan-05 0:35
Snowjim12-Jan-05 0:35 
AnswerRe: Handle Bitmaps faster? Pin
Stefan Troschuetz12-Jan-05 1:10
Stefan Troschuetz12-Jan-05 1:10 
GeneralRe: Handle Bitmaps faster? Pin
Snowjim12-Jan-05 1:21
Snowjim12-Jan-05 1:21 
GeneralRe: Handle Bitmaps faster? Pin
Stefan Troschuetz12-Jan-05 1:36
Stefan Troschuetz12-Jan-05 1:36 

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.