Click here to Skip to main content
15,894,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

C#
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900