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

DataView - RowFilter

Hi People,

I have the following code:
---------
DataView dvErrorSQL = new DataView(dsErroSQL.Tables["Error"]);
dvErroSQL.RowFilter = "cdError = " + iError;
---------------------

I need to send the result of this DataView to a Variable

I tryed:
--------------------
string strErrorSQL =
dvErrorSQL.Table.Rows[0]["error_description"].ToString();
--------------------------------

You can see the Rows[0] ?

It's returning the first row (of course) but I need to return the row that i
got in my -->dvErrorSQL.RowFilter<--

How I get the number of the how when I do the dvErrorSQL.RowFilter ???
Nov 17 '05 #1
2 1716
dvErrorSQL.Item[0]["error_description"].ToString()

Marcie

On Thu, 21 Apr 2005 19:05:23 -0300, "Daniel Groh"
<ne*********@gmail.com> wrote:
Hi People,

I have the following code:
---------
DataView dvErrorSQL = new DataView(dsErroSQL.Tables["Error"]);
dvErroSQL.RowFilter = "cdError = " + iError;
---------------------

I need to send the result of this DataView to a Variable

I tryed:
--------------------
string strErrorSQL =
dvErrorSQL.Table.Rows[0]["error_description"].ToString();
--------------------------------

You can see the Rows[0] ?

It's returning the first row (of course) but I need to return the row that i
got in my -->dvErrorSQL.RowFilter<--

How I get the number of the how when I do the dvErrorSQL.RowFilter ???


Nov 17 '05 #2
dvErrorSQL[0]["error_description"].ToString()

On Thu, 21 Apr 2005 18:22:56 -0400, Marcie Jones
<ma*********@yahoo.com> wrote:
dvErrorSQL.Item[0]["error_description"].ToString()

Marcie

On Thu, 21 Apr 2005 19:05:23 -0300, "Daniel Groh"
<ne*********@gmail.com> wrote:
Hi People,

I have the following code:
---------
DataView dvErrorSQL = new DataView(dsErroSQL.Tables["Error"]);
dvErroSQL.RowFilter = "cdError = " + iError;
---------------------

I need to send the result of this DataView to a Variable

I tryed:
--------------------
string strErrorSQL =
dvErrorSQL.Table.Rows[0]["error_description"].ToString();
--------------------------------

You can see the Rows[0] ?

It's returning the first row (of course) but I need to return the row that i
got in my -->dvErrorSQL.RowFilter<--

How I get the number of the how when I do the dvErrorSQL.RowFilter ???


Nov 17 '05 #3

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

Similar topics

1
by: Webgour | last post by:
I'm tring to filter a dataview with multiple rowfilters. The problem is that each time I use RowFilter on the DataView i'm quering the full dataview as it was loaded, not the filtered version. Is...
3
by: Vern | last post by:
The following code retrieves data into a dataset, and then creates a dataview with a filter. This dataview is then attached to a combobox. When the effective date changes, I would like to see the...
2
by: Ryan Moore | last post by:
I have a dataset (called adset) which has a column called "Large" which is either an integer 0 or 1. I am creating 2 dataviews, one which should display the 1's and one which should display the...
8
by: Dave Hagerich | last post by:
I'm using a DataGrid with a DataSet and I'm trying to filter the data being displayed, using the following code as a test: DataView theView = new DataView(theDataSet.Tables); theView.RowFilter =...
8
by: KC | last post by:
For a DataView.Rowfilter can I use more than one expression? I want to filter out two different things. For example can I take: dv.RowFilter = "MTX <> 'Customer Forcast'" and ...
7
by: randy1200 | last post by:
I have an orders table. Each record in the orders table contains a customer id. I have a customer table. The primary key of each record in the customer table is the customer id. After getting...
0
by: neeraj | last post by:
Hi, all Could anny one give me help how can I use like operator with these data types "integer , datetime or boolean" in DataView.RowFilter Actually when I try to get the data from dataview...
2
by: neeraj | last post by:
Hi, all Could anny one give me help how can I use like operator with these data types "integer , datetime or boolean" in DataView.RowFilter Actually when I try to get the data from dataview...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.