ASP.NET Datagrid problem

P

Pepehammer

Hi guys;

I got a datagrid, binded to a datareader.
This datagrid has columns with datat, plus one column with text boxes.

I need to loop thru the datagrid to extract one by one all the values on it
How can do this?

Thanks

MP
 
R

Raymond Lewallen

Pepehammer,

Could you explain your situation with more elaboration? Understanding
completely what you are trying to do with the data will help in answering
your problem, as there are a few ways to accomplish what you are probably
wanting to do, but I don't know which might be best for your situation.

Raymond Lewallen
 
D

devplayer04

after databinding of the datagrid, you can do this at anytime, but you must
provide your own logic.

private void ProcessDataGridItem(DataGridItemCollection items)
{
foreach(DataGridItem item in items)
{
if (item.ItemType == ListItemType.Item || item.ItemType ==
ListItem.AlternatingItem)
{
foreach(TableCell cell in item.Cells)
{

}
}
}
}
 

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

Top