PC Review


Reply
Thread Tools Rate Thread

dataview and datatable how to find corresponding row??

 
 
=?Utf-8?B?YWxmYQ==?=
Guest
Posts: n/a
 
      1st Feb 2005
When i create a dataview with a rowfilter form a dataTable
how do i find the corresponding row in the data table??

for example:
i've 100 row in the datatable
my dataview.rowfilter (on customername ) results in 5 rows
how can i return to the same customer in my datatabale as on the first row
of my dataview??
 
Reply With Quote
 
 
 
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      1st Feb 2005
Hi,

DataRowView.Row should give you the DataTableRow.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

Otherwise you'll have t
"alfa" <(E-Mail Removed)> wrote in message
news:157B4AC7-B03E-4587-96D3-(E-Mail Removed)...
> When i create a dataview with a rowfilter form a dataTable
> how do i find the corresponding row in the data table??
>
> for example:
> i've 100 row in the datatable
> my dataview.rowfilter (on customername ) results in 5 rows
> how can i return to the same customer in my datatabale as on the first row
> of my dataview??



 
Reply With Quote
 
=?Utf-8?B?YWxmYQ==?=
Guest
Posts: n/a
 
      1st Feb 2005
Sorry, didn't tell that i'm using the Compact Framework
And so haven't "DataRowView" or i can't find this option.


 
Reply With Quote
 
=?Utf-8?B?YWxmYQ==?=
Guest
Posts: n/a
 
      1st Feb 2005
Found the item but i just get the complete row back.
The thing i want to get back is the position in the datatable!
Why? i want to make a search / select form so user can choice
items from a datatable but manupilate (order) per product.
And if the want a next product the start search at the last used article
so the don't have to walk trough the whole list again.


"alfa" wrote:

> Sorry, didn't tell that i'm using the Compact Framework
> And so haven't "DataRowView" or i can't find this option.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataTable -> DataView -> Sort -> DataGrid : need related DataTable index Diamonds Microsoft ADO .NET 4 28th Jun 2006 08:23 PM
DataView - How to access the row in the datatable behind the DataView Richard Microsoft C# .NET 5 17th Jul 2005 04:57 PM
DataView - How to access the row in the datatable behind the DataView Richard Microsoft VB .NET 5 17th Jul 2005 04:57 PM
How to assign the changed datatable in dataview back to a datatable? TaeHo Yoo Microsoft C# .NET 1 8th Jul 2005 04:41 AM
Does DataView(DataTable) constructor just return DataTable.DefaultView? Neil Price Microsoft ADO .NET 1 22nd Sep 2003 12:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:22 PM.