Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- From: "Dev" <dev@xxxxxxxxxxxxx>
- Date: Sat, 5 May 2007 13:23:02 +0600
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:
- Re: Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- From: MasterGaurav \(www.edujini-labs.com\)
- Re: Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- From: Eliyahu Goldin
- Re: Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- Prev by Date: Strange Problem: Templated checkbox column
- Next by Date: Re: Newbie Delete question
- Previous by thread: Strange Problem: Templated checkbox column
- Next by thread: Re: Strange Problem: Removing rows from Table object doesnt update rowcount of Gridview
- Index(es):
Relevant Pages
|
Loading