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) ?
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>