473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

DataTable columns "not found" when filtering datarows

36
I created the following Sub to fill a DataSet with the Table named Developer. It binds to the Grid with no problems.


Public Sub SearchSkills()

Dim sqlcmd3 As SqlCommand = New SqlCommand

sqlcmd3.CommandText = "SELECT DeveloperId, SkillsID, Name, SkillLevel, MonthsExperience, Skills FROM vDeveloperSkills"

sqlcmd3.Connection = connection

Dim da As New SqlDataAdapter(sqlcmd3)

Dim scb As New SqlCommandBuilder(da)

Dim ds As New DataSet


da.Fill(ds, "developer")

Me.GridView1.DataSource = ds.Tables("developer")

Me.GridView1.DataBind()


SearchOne()
End Sub


I then want to filter the Table("developer") using the following code. However, the Table("developer") does not have any columns. I checked the column count using Dim z As Integer = dt.Columns.Count.


Dim DataRow2 As DataRow()

Dim dt As DataTable = New DataTable("developer")

DataRow2 = dt.Select("SkillsId = '1'", "SkillsId DESC")

For Each row As DataRow In DataRow2

ListBox1.Items.Add(row("SkillsId "))

Next


Thanks,

Wbosw
Oct 17 '07 #1
1 1585
wbosw
36
Found the solution on another website
Oct 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Skip Hollowell | last post by:
I have what is now a table with a header row and then obviously rows of data beneath. If the data is more than 50 or 6 rows (100px) then the rows will scroll using overflow:auto. This all works...
3
by: Ari Royce Hidayat | last post by:
Dear ALL, Is there some one ever faces this problem? And fix it? The scenario is: There's an html page that hosts a .net object (using object tag), and this page opens the second html page...
0
by: Ari Royce Hidayat | last post by:
Tx a lot for idea. I've tried it, and still get not clue what causes it. I also tried to see the log file generated by IEHost (by adding IEHostLogFile to registry) and still get not clue what...
3
by: Steve Lutz | last post by:
Hi All, I have a Windows Service that runs well. The service hosts a remote object. The purpose of the object is so that I can "peak" into the service to see what it's doing. I wrote a small...
60
by: Dave | last post by:
I'm never quite sure whether to use "this." or not when referring to fields or properties in the same class. It obviously works just fine without it but sometimes I wonder if using this....
5
by: Rob Dob | last post by:
I am trying to set the NullValue within the Column properties of my Dataset in VS2005. The DataType is a System.DateTime. and when I try and change it from "(Throw Exception)" I get the following...
1
by: Sharif Islam | last post by:
I am getting this error while uploading a text file in a table: Error at Source for Row number 7370 Too Many Columns Found in the current row;;non-whitespace characters were found after the last...
22
by: kkk1979 | last post by:
I am not an experienced programmer. I am getting an error as "method or data member not found" when i entered the following code in buttonclick procedure of the toolbar. select case button.key...
0
by: Nilam2477 | last post by:
I have an application which is converted from VC6 to VC7.1 (.net 2003) I'm trying to debug in .net 2003 i need to check the return value HRESULT value. I have declared hr as HRESULT hr = S_OK;...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.