DataGrid Built In Paging and DataGridItem Problem

P

Paul Perot

Hi All:

I am populating a Data Table with File/Folder information from my drive... I
am then binding this data table to a DataGrid. Due to the size of the
DataGrid data, I use the built in paging. All of this seems to work just
fine. In certain circumstances I need to programically change one of the
data column values from true to false or from false to true... To do this, I
read in each datagriditem in the datagrid.items collection to a new Data
Table ... making the changes as I do and then rebind the datagrid to the
newly created datatable. This is where I am having my problem. If I do not
use the built in paging it works fine...If I do use the built in paging...I
can only read in the items that appear on the specific page that is being
displayed. This is a code snippet that I use:

Dim item As DataGridItem
For Each item In dgList.Items
i = i + 1
Next

What am I doing wrong here? Do you have suggestions on a better way to do
this?? TIA
--

Best regards

Paul Perot
President
Perot Solutions
(e-mail address removed)
(770) 565 - 9151
(678) 852 - 7789 (c)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top