|
|
 |
| 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.
|
 |

August 11th, 2003, 04:42 AM
|
|
Registered User
|
|
Join Date: Aug 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

August 11th, 2003, 04:49 AM
|
|
Authorized User
|
|
Join Date: Jun 2003
Location: , , Slovakia.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, there's a bug in .NET framework 1.0
Try to use .NET Framework 1.1
or create DataView and use FilterRow property.
|

October 5th, 2009, 12:12 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Location: S Cal, Ca, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

October 5th, 2009, 01:24 PM
|
|
Registered User
|
|
Join Date: Dec 2006
Location: S Cal, Ca, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |