RE: RowFilter Failing
- From: Mahesh <Mahesh@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Feb 2006 10:11:27 -0800
Hi,
rowFilter acts the same way as a where clause in SQL and SQL WHERE clause
doesnt support GUID and image types.
I hope this helps
Mahesh B.
--
"Elton W" wrote:
Hi Spence,.
Try
vueDisplayImages.rowfilter = "PatientID =" & PatientID
If in datatable PatientID's data type is string, try
vueDisplayImages.rowfilter = "PatientID ='" & PatientID +& "'"
HTH
Elton Wang
"Spence" wrote:
I hope someone royally owns me using my own stupidity but follow this
thought process if you will.
vs.net 2003 .net 1.1, MSDE
I have a table with three fields:
PatientsDisplayImageTypes
PatientsDisplayImageTypeID (GUID), PatientID (Guid), ImageTypeID (Guid)
PK FK FK
I fill my dataset using the dataAdapter ("Select * from
PatientsDisplayImageTypes", conSLDB)
da.fill(ds, "DisplayImages")
I then create a view upon the datatable
Dim vueDisplayImages As New DataView(ds.Tables("DisplayImages"), "",
"ImageTypeID", DataRowViewState.CurrentRows) *** IF i were to be owned I
believe this line could be it, perhaps need to use a different row state.
So now I have my view.
I then select a PatientID as a GUID from a working list, and this is where
it gets interesting. (Have verified PatientID to be valid during Debugging,
and records exist in the Sql (PatientsDisplayImageTypes) data table (Verified
directly using enterprise manager)
I set vueDisplayImages.rowfilter = "PatientID = '{" & PatientID.toString &
"}')
vueDisplayImages.Count is 0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Hence my problem. So patient ID is valid. Syntax for rowfilter is valid(?).
Records exist in the underlying SQL table. Used a select * to fill the ds,
with no where condition, hence if record is in the SQL table, it is now in my
dataset.
Does this sound like a .net bug?
- Follow-Ups:
- RE: RowFilter Failing
- From: Spence
- RE: RowFilter Failing
- Prev by Date: Connection Pooling holding onto errors?
- Next by Date: Re: Connections in pool not being reused
- Previous by thread: RE: RowFilter Failing
- Next by thread: RE: RowFilter Failing
- Index(es):
Relevant Pages
|