D
Dev
Hi,
I have a gridview from which i want to remove gridviewrows onfly.
I remove the rows as follows:
Dim oTable as Table = CType(oGridViewRow.Parent, Table)
oTable.Rows.Remove(CType(oGridViewRow, TableRow))
Above removes required rows from the gridview but the problem is on
postback, it adds blank rows again to the gridview. Is it because viewstate
is enabled? But it doesnt add all the deleted rows but always adds one less.
How can I control this, so that it will not add blank rows on postback?
[The gridview is not bound to any datasource controls. So it is not possible
to blankout databindings, delete a row from the datasource control and then
reset bindings too.]
Thanks.
Dev
I have a gridview from which i want to remove gridviewrows onfly.
I remove the rows as follows:
Dim oTable as Table = CType(oGridViewRow.Parent, Table)
oTable.Rows.Remove(CType(oGridViewRow, TableRow))
Above removes required rows from the gridview but the problem is on
postback, it adds blank rows again to the gridview. Is it because viewstate
is enabled? But it doesnt add all the deleted rows but always adds one less.
How can I control this, so that it will not add blank rows on postback?
[The gridview is not bound to any datasource controls. So it is not possible
to blankout databindings, delete a row from the datasource control and then
reset bindings too.]
Thanks.
Dev