Hi all,
I have a datagrid and i use paging. I have a button for deleting everything in the datagrid (so not one by one).
Now my problem is when i click the button my code is the following:
For Each i As DataGridItem In Me.dataGridPcGegevens.Items
text = i.FindControl("TextNummer")
nummer = text.Text.ToString()
DefinitiefToevoegen(nummer)
Next i
The problem is only the things on the page that is selected are deleted. Now i want to know is it possible to do this code for all the pages in the datagrid?
Thx
Kim
I have a datagrid and i use paging. I have a button for deleting everything in the datagrid (so not one by one).
Now my problem is when i click the button my code is the following:
For Each i As DataGridItem In Me.dataGridPcGegevens.Items
text = i.FindControl("TextNummer")
nummer = text.Text.ToString()
DefinitiefToevoegen(nummer)
Next i
The problem is only the things on the page that is selected are deleted. Now i want to know is it possible to do this code for all the pages in the datagrid?
Thx
Kim