Click here to Skip to main content
14,599,199 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello Sir,

I am using dev express 11.1 and facing a issue please look at this and provide me ur valuable feedback.

protected void gvAssignedOrders_HtmlRowCreated(object sender, ASPxGridViewTableRowEventArgs e)
{
public Dictionary<string,> dicCheckboxesAndIds = new Dictionary<string,>();
int iOrderId = Numericcl.GetIntValue(gvAssignedOrders.GetRowValues(e.VisibleIndex, "in_order_id"));
dicCheckboxesAndIds.Add(cOrderCheckBox.ClientID, gvAssignedOrders.GetRowValues(e.VisibleIndex, "in_order_id").ToString());
}


Error:- An item with the same key has already been added.


I found that that due to (e.VisibleIndex) it only refer to those order id's which are on first page of the grid after that it again adding the same order id which are having visible index true.but i want all grid rows rather than only visible index so plz guide me what I will use there??
Posted
Updated 18-Sep-14 16:37pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100