p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > C# and C > C# 1.0 > C#
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 11th, 2003, 04:42 AM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataTable.Select() method bug

Hello,

I'm in urgent need of using the DataTable's Select()-method, but there appears to be a bug that makes the method not return all of the matches. When searching for an Int32 (or long) primary key, most of the rows are found, some are not (eg. "ID=1738933665" is found and "ID=1956736656" is not, but both are there).

Here you can a sample code for the bug:
http://www.aewnet.com/newsgroups/rne...50756&group=21

I haven't found any information at microsoft.com, nor anywhere else. I'm using the .NET Framework 1.0 (VS 2002).

Thanks in advance!!

-JAN
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 11th, 2003, 04:49 AM
Authorized User
Points: 28, Level: 1
Points: 28, Level: 1 Points: 28, Level: 1 Points: 28, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Slovakia.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, there's a bug in .NET framework 1.0
Try to use .NET Framework 1.1
or create DataView and use FilterRow property.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old October 5th, 2009, 12:12 PM
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2006
Location: S Cal, Ca, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am useing Visual Studio 2005 and framework 2.0 and am also getting incosistant results with the SELECT method of a datatable. I have added 2 tables to a dataset; one parent, one child. I am using a development environment so the data in each table is known and controlled. Stepping through the VB code, I can see where the select is sometimes failing (although some selects are working). This does not make sense to me since the same code adds records to the parent and child tables.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old October 5th, 2009, 01:24 PM
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2006
Location: S Cal, Ca, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Talking datatable select method fix

I fixed my problem with the datatable select method.
I am using framework 2.0 (Visual Studio 2005)

The fix is to add more qualifiers to the datatable column creation
My original code said
SubDT.Columns.Add("ContractID")

The revised code says
SubDT.Columns.Add("ContractID", System.Type.GetType("System.Int32"))

The SELECT method was fixed by more fully describing the column type in the tabel creation routine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in the highlight method for form objects cheets BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 June 11th, 2009 09:05 PM
c# method Select() twb C# 0 November 18th, 2006 02:59 PM
Add Joins to DataTable Select Commands ottoman BOOK: Expert One-on-One Visual Basic 2005 Database Programming 1 February 7th, 2006 07:46 PM
how to use DataTable.Select Salte C# 2 December 22nd, 2004 04:28 AM
Return DataTable from Web Method Function kasie ASP.NET 1.0 and 1.1 Basics 2 February 11th, 2004 06:23 AM



All times are GMT -4. The time now is 03:47 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc