DataView - RowFilter

  • Thread starter Thread starter Daniel Groh
  • Start date Start date
D

Daniel Groh

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 ???
 
dvErrorSQL[0]["error_description"].ToString()

dvErrorSQL.Item[0]["error_description"].ToString()

Marcie

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 ???
 
Back
Top