ASP.NET Datagrid problem

  • Thread starter Thread starter Pepehammer
  • Start date Start date
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
 
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
 
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)
{

}
}
}
}
 
Back
Top