Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get a value from other datagrid boundcolumn?
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
How to get a value from other datagrid boundcolumn?
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP1
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015741
Message ID:
01015741
Views:
78
hi all,

I have a problem to retrieve a value from other datagrid boundcolumn. I tried to using below code but got error in line 4 like "Cannot convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.BoundColumn'".

1 for (int i=0; i < dgrMatchCart.Items.Count; i++)
2 {
3 DataGridItem _item = dgrMatchCart.Items[i];
4 System.Web.UI.WebControls.BoundColumn DocNoBox =(System.Web.UI.WebControls.BoundColumn)_item.FindControl("DocNo");
5 TextBox AllotedAmtBox = (TextBox)_item.FindControl("txtAllotedAmt");
6 }


I also tried using this method but how do I fire a event in other datagrid?

protected void dgrMatchListing_CartCommand(Object sender, DataGridCommandEventArgs e)
{
DataRow drCart = dtCart.NewRow();
TableCell DocNoCell = e.Item.Cells[3];
....
}


Someone can help me?
Thank you in advance for helping.
Reply
Map
View

Click here to load this message in the networking platform