| | |
Table columns intellisense in c#
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Aug 2008
Posts: 48
Reputation:
Solved Threads: 2
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: 48
Reputation:
Solved Threads: 2
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 |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox class client combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






