Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > DataRow

Reply
Thread Tools

DataRow

 
 
Nabeel Moeen
Guest
Posts: n/a
 
      02-27-2004
hello all,
are the datarow index mantained when DataTable is sorted by clicking on the
column header?
that is .. if the first row is index 1, suppose, and after sorting ona
specific column this row ends up 3rd... is the index still 1?

and also .. how can i get the index of a particular datarow .. ( assuming i
hav the dataRow object) ?


 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      03-02-2004
Your post went unanswered. Have you resolved this issue?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Nabeel Moeen" <> wrote in message
news:uRJKULT$...
> hello all,
> are the datarow index mantained when DataTable is sorted by clicking on

the
> column header?
> that is .. if the first row is index 1, suppose, and after sorting ona
> specific column this row ends up 3rd... is the index still 1?
>
> and also .. how can i get the index of a particular datarow .. ( assuming

i
> hav the dataRow object) ?
>
>



 
Reply With Quote
 
 
 
 
Nabeel Moeen
Guest
Posts: n/a
 
      03-03-2004
nopes...
still waiting for a suggestion!


"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:%...
> Your post went unanswered. Have you resolved this issue?
>
> --
> Regards,
> Alvin Bruney [ASP.NET MVP]
> Got tidbits? Get it here...
> http://tinyurl.com/3he3b
> "Nabeel Moeen" <> wrote in message
> news:uRJKULT$...
> > hello all,
> > are the datarow index mantained when DataTable is sorted by clicking on

> the
> > column header?
> > that is .. if the first row is index 1, suppose, and after sorting ona
> > specific column this row ends up 3rd... is the index still 1?
> >
> > and also .. how can i get the index of a particular datarow .. (

assuming
> i
> > hav the dataRow object) ?
> >
> >

>
>



 
Reply With Quote
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      03-03-2004
is the index still 1?
no

> > and also .. how can i get the index of a particular datarow .. (

assuming
> i
> > hav the dataRow object) ?


If you are at that particular row, the index is the same as the row count
ds.Tables[0].Rows[index_or_current_row_number][col].ToString()

hth

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Nabeel Moeen" <> wrote in message
news:...
> nopes...
> still waiting for a suggestion!
>
>
> "Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
> news:%...
> > Your post went unanswered. Have you resolved this issue?
> >
> > --
> > Regards,
> > Alvin Bruney [ASP.NET MVP]
> > Got tidbits? Get it here...
> > http://tinyurl.com/3he3b
> > "Nabeel Moeen" <> wrote in message
> > news:uRJKULT$...
> > > hello all,
> > > are the datarow index mantained when DataTable is sorted by clicking

on
> > the
> > > column header?
> > > that is .. if the first row is index 1, suppose, and after sorting ona
> > > specific column this row ends up 3rd... is the index still 1?
> > >
> > > and also .. how can i get the index of a particular datarow .. (

> assuming
> > i
> > > hav the dataRow object) ?
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Nabeel Moeen
Guest
Posts: n/a
 
      03-04-2004
but the index does not change when the sorting order of hte rows change by
clicking on the column header ..
the row with index 1 might end up being the third row on the grid?

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:...
> is the index still 1?
> no
>
> > > and also .. how can i get the index of a particular datarow .. (

> assuming
> > i
> > > hav the dataRow object) ?

>
> If you are at that particular row, the index is the same as the row count
> ds.Tables[0].Rows[index_or_current_row_number][col].ToString()
>
> hth
>
> --
> Regards,
> Alvin Bruney [ASP.NET MVP]
> Got tidbits? Get it here...
> http://tinyurl.com/3he3b
> "Nabeel Moeen" <> wrote in message
> news:...
> > nopes...
> > still waiting for a suggestion!
> >
> >
> > "Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
> > news:%...
> > > Your post went unanswered. Have you resolved this issue?
> > >
> > > --
> > > Regards,
> > > Alvin Bruney [ASP.NET MVP]
> > > Got tidbits? Get it here...
> > > http://tinyurl.com/3he3b
> > > "Nabeel Moeen" <> wrote in message
> > > news:uRJKULT$...
> > > > hello all,
> > > > are the datarow index mantained when DataTable is sorted by clicking

> on
> > > the
> > > > column header?
> > > > that is .. if the first row is index 1, suppose, and after sorting

ona
> > > > specific column this row ends up 3rd... is the index still 1?
> > > >
> > > > and also .. how can i get the index of a particular datarow .. (

> > assuming
> > > i
> > > > hav the dataRow object) ?
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      03-04-2004
Are you sorting thru the dataview, if so that would be the reason since the
dataview is only a window into the data. If not, i will need to take a
closer look.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Nabeel Moeen" <> wrote in message
news:%...
> but the index does not change when the sorting order of hte rows change by
> clicking on the column header ..
> the row with index 1 might end up being the third row on the grid?
>
> "Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
> news:...
> > is the index still 1?
> > no
> >
> > > > and also .. how can i get the index of a particular datarow .. (

> > assuming
> > > i
> > > > hav the dataRow object) ?

> >
> > If you are at that particular row, the index is the same as the row

count
> > ds.Tables[0].Rows[index_or_current_row_number][col].ToString()
> >
> > hth
> >
> > --
> > Regards,
> > Alvin Bruney [ASP.NET MVP]
> > Got tidbits? Get it here...
> > http://tinyurl.com/3he3b
> > "Nabeel Moeen" <> wrote in message
> > news:...
> > > nopes...
> > > still waiting for a suggestion!
> > >
> > >
> > > "Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
> > > news:%...
> > > > Your post went unanswered. Have you resolved this issue?
> > > >
> > > > --
> > > > Regards,
> > > > Alvin Bruney [ASP.NET MVP]
> > > > Got tidbits? Get it here...
> > > > http://tinyurl.com/3he3b
> > > > "Nabeel Moeen" <> wrote in message
> > > > news:uRJKULT$...
> > > > > hello all,
> > > > > are the datarow index mantained when DataTable is sorted by

clicking
> > on
> > > > the
> > > > > column header?
> > > > > that is .. if the first row is index 1, suppose, and after sorting

> ona
> > > > > specific column this row ends up 3rd... is the index still 1?
> > > > >
> > > > > and also .. how can i get the index of a particular datarow .. (
> > > assuming
> > > > i
> > > > > hav the dataRow object) ?
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Using Select method and LIKE expression to return DataRow[] Ron Vecchi ASP .Net 0 07-31-2003 12:10 AM
DataRow[] and Select(filter with a like clause) question Ron Vecchi ASP .Net 0 07-30-2003 01:04 PM
DataRow[] and Select(filter with a like clause) question Ron Vecchi ASP .Net 1 07-27-2003 01:07 PM
Re: Convert DataRow content to bool Eliyahu Goldin ASP .Net 0 07-07-2003 01:32 PM
Re: Convert DataRow content to bool Ignacio Machin ASP .Net 0 07-07-2003 12:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57