| | |
Table columns intellisense in c#
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Aug 2008
Posts: 46
Reputation:
Solved Threads: 1
Hi ,
I am busy converting a VB6 project to c#.
Now in vb6 , the columns have intellisense like so...
But in c# , i would either have to create an sql query , or use datarow with a column index or column name as index.
Having to use column index is error prone , and having to type column name is burdensome(many columns in tables) .
I know it is something along the lines of creating dataset(via datasources wizard) and/or table adapter .
Pls give me instructions if you know how.(no commercial products or complex procedures please)
-Thanks
I am busy converting a VB6 project to c#.
Now in vb6 , the columns have intellisense like so...
VB Syntax (Toggle Plain Text)
rsIBBSData!DrOrCr = 1 'rs is the recordset
But in c# , i would either have to create an sql query , or use datarow with a column index or column name as index.
Having to use column index is error prone , and having to type column name is burdensome(many columns in tables) .
I know it is something along the lines of creating dataset(via datasources wizard) and/or table adapter .
Pls give me instructions if you know how.(no commercial products or complex procedures please)
-Thanks
Last edited by stoymigo; Oct 20th, 2009 at 10:52 am.
0
#3 Oct 20th, 2009
It sounds like you're on the right track. You know what you need to do so I don't understand what you're asking. If you have a specific question about creating a dataset or its' behavior then please update the thread with your question.
•
•
Join Date: Aug 2008
Posts: 46
Reputation:
Solved Threads: 1
0
#4 Oct 20th, 2009
Problem is solved ,
I did the above , in runtime I had to change the connection string , and whichever fields of a row I did not set , then a default null was inserted.If the field was not nullable then I would get a compile-time error which is better than runtime.
Further suggestions are still welcome...
I did the above , in runtime I had to change the connection string , and whichever fields of a row I did not set , then a default null was inserted.If the field was not nullable then I would get a compile-time error which is better than runtime.
Further suggestions are still welcome...
![]() |
Similar Threads
- Table columns are sequeezed (HTML and CSS)
- DataGrid read-only columns (ASP.NET)
- adding columns of a table (MS SQL)
- table rows and columns (PHP)
- deleting records from ms sql table where columns have duplicate values (MS SQL)
- Searching all columns in a table (PHP)
- How to make the columns in a table resizable (JavaScript / DHTML / AJAX)
- using sqrt () method in table (Java)
Other Threads in the C# Forum
- Previous Thread: problem in inserting data by using checkedlistbox in database
- Next Thread: IndexOf() in C#
| Thread Tools | Search this Thread |
.net 2007 access algorithm appportability array barchart bitmap box broadcast buttons c# camera check checkbox client combobox control conversion cs4 csharp custom database datagrid datagridview dataset date datetime degrees development draganddrop drawing encryption enum event eventcloseformc# excel file form format forms function gdi+ handler httpwebrequest image index input install java keypress label list listbox listener listview load mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox search security server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation view visual visualstudio webbrowser windows winforms wordautomation wpf xml






