473,395 Members | 1,680 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,395 software developers and data experts.

Data view rowfilter bug

Roy
Hi all,
I'm getting error when assigning a string to a rowfilter:
Dim dv As New DataView(MyDataTable)
Dim str As String = "Col1 = 9999999999" 'Col1 has Double data type in MS
Access database
dv.RowFilter = str ' This is the place I get overflow exception
Is this a bug or I'm missing something.
Thanks in advance for your help
Roy
Dec 19 '05 #1
4 1486
Roy wrote:
Hi all,
I'm getting error when assigning a string to a rowfilter:
Dim dv As New DataView(MyDataTable)
Dim str As String = "Col1 = 9999999999" 'Col1 has Double data type in MS
Access database
dv.RowFilter = str ' This is the place I get overflow exception
Is this a bug or I'm missing something.
Thanks in advance for your help
Roy

What's the data type in the datatable?

Tom
Dec 19 '05 #2
Roy
Data type for MyDataTable.Col1 is double.
Thanks

"tomb" wrote:
Roy wrote:
Hi all,
I'm getting error when assigning a string to a rowfilter:
Dim dv As New DataView(MyDataTable)
Dim str As String = "Col1 = 9999999999" 'Col1 has Double data type in MS
Access database
dv.RowFilter = str ' This is the place I get overflow exception
Is this a bug or I'm missing something.
Thanks in advance for your help
Roy

What's the data type in the datatable?

Tom

Dec 19 '05 #3
Roy,

I made this code using VB2005, it did run until the end.
\\\
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim dt As New DataTable
dt.Columns.Add("Col1", GetType(System.Double))
dt.LoadDataRow(New Object() {9999999999}, True)
Dim dv As New DataView(dt)
Dim str As String = "Col1 = 9999999999"
DataGrid1.DataSource = dv
End Sub
///

Can you try this as well in an empty project.

I hope this helps,

Cor

"Roy" <Ro*@discussions.microsoft.com> schreef in bericht
news:5A**********************************@microsof t.com...
Data type for MyDataTable.Col1 is double.
Thanks

"tomb" wrote:
Roy wrote:
>Hi all,
>I'm getting error when assigning a string to a rowfilter:
>Dim dv As New DataView(MyDataTable)
>Dim str As String = "Col1 = 9999999999" 'Col1 has Double data type in
>MS
>Access database
>dv.RowFilter = str ' This is the place I get overflow exception
>Is this a bug or I'm missing something.
>Thanks in advance for your help
>Roy
>
>

What's the data type in the datatable?

Tom

Dec 20 '05 #4
Roy
Thanks Cor for taking time and answering my question. The following code is
running and doesn't raise any exception, but if the data type extracted from
MS Access database instead, somehow treated as int32, although it's a double.
That's what I can't understand.
Thanks again
Roy

"Cor Ligthert [MVP]" wrote:
Roy,

I made this code using VB2005, it did run until the end.
\\\
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim dt As New DataTable
dt.Columns.Add("Col1", GetType(System.Double))
dt.LoadDataRow(New Object() {9999999999}, True)
Dim dv As New DataView(dt)
Dim str As String = "Col1 = 9999999999"
DataGrid1.DataSource = dv
End Sub
///

Can you try this as well in an empty project.

I hope this helps,

Cor

"Roy" <Ro*@discussions.microsoft.com> schreef in bericht
news:5A**********************************@microsof t.com...
Data type for MyDataTable.Col1 is double.
Thanks

"tomb" wrote:
Roy wrote:

>Hi all,
>I'm getting error when assigning a string to a rowfilter:
>Dim dv As New DataView(MyDataTable)
>Dim str As String = "Col1 = 9999999999" 'Col1 has Double data type in
>MS
>Access database
>dv.RowFilter = str ' This is the place I get overflow exception
>Is this a bug or I'm missing something.
>Thanks in advance for your help
>Roy
>
>
What's the data type in the datatable?

Tom


Dec 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Dan Koster | last post by:
I have three weeks of history for all user accounts stored in a DataSet (dsAccountsHistory). I want to be able to narrow that data down to one specific user, at runtime, without having to make...
2
by: Liza | last post by:
Hi I have a problem gettting the right data in my CommandArgument after I applyed a rowfilter. My template column looks somewhat like this: <asp:TemplateColumn HeaderText="ErrorID">...
0
by: Gary Townsend | last post by:
I am hoping someone can poit me in a right direction for how is should look at implementing this with efficiency I have a form which has a combo box with a list of Schools this is the top level...
2
by: Brian Henry | last post by:
say i have a dataset called dv and i have a boolean value i want to filter by "b_DoesWork" while the column name in the data view that i want to filter on is called "Works" how would i filter...
4
by: Nate | last post by:
Before I go through posting a lot of code, a quick question ... Has anyone come across a problem with a DataView showing duplicates of the desired data? I'm querying a SQL table and the DataView...
1
by: neeraj | last post by:
Hi All Can any give me the code for convert "DataColumn" data type of "DataTable". Even if data table already populated (have data) Actually I am creating one search module which searches the...
1
by: AlexW | last post by:
Hi I am in the process of developing an inventory application in visual basic. I keep coming up against a problem with using the dataview.rowfilter property. Basically what happens is this: -a...
5
by: AlexW | last post by:
Hi I am in the process of developing an inventory application in visual basic. I keep coming up against a problem with using the dataview.rowfilter property. Basically what happens is this: -a...
1
by: Duggi | last post by:
Hi All, I want to apply a date field as filter for the Dataview. How shall I do it.. How to discribe a string for DataView.RowFilter ? DataView.RowFilter = ??????????????? What would be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.