|
-
Oct 3rd, 2006, 02:47 PM
#1
Thread Starter
New Member
[1.0/1.1] i canot get values from datagrid
I am populating grid dynamically on page load .it contains webcontrols like dropdown and labels.now i am trying to get values from the grid but i am unable to get the values.
foreach(DataGridItem objDataGridItem in dgPrice.Items )
{
DropDownList objDropDownlist = (DropDownList)(objDataGridItem.Cells[1].Controls[1]);
Degree =Degree+ ((DropDownList)objDataGridItem.FindControl("drpQty")).SelectedItem.Text;
Degree =Degree+objDataGridItem.Cells[1].Text;
}
This is bit of my code which shows what i am trying to do.
Please help ma ASAP
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|