Re: Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- From: "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx>
- Date: Sun, 6 May 2007 12:15:03 +0300
What is Table.Remove()? What class is Table? How is it related to the grid?
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Dev" <dev@xxxxxxxxxxxxx> wrote in message
news:eMKUAZujHHA.1388@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I'm removing rows from a gridview using Table.Remove( ). This removes the
rows from the gridview.
But the problem is although it removes rows from the gridview it doesnt
update the Gridview.Rows.Count to return correct number of rows remains on
the gridview. Instead it always returns the number of rows gridview
originally had prior to removing them.
Anybody know why this is happening? How to remove gridview rows in a
manner so that it will update the rows.count property correctly?
Note: I'm looking for a method to directly remove rows from a gridview
without having to rebinding gridview to datasource controls etc...
Dev
.
- Follow-Ups:
- References:
- Prev by Date: Re: Newbie Delete question
- Next by Date: Re: Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- Previous by thread: Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- Next by thread: Re: Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- Index(es):
Relevant Pages
|
Loading