datagrid link button
-
"Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" in datagrid1 after clicking the data any one can help me to sort out
rizvan sivally
sheemap wrote:
any one can help me to sort out
Of course I can. Oh, wait, telepathic powers waning... can't quite make out what you need... You need to be a wee bit more specific - not enough to properly assess what you need though this[^] might point you in the right direction.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
-
"Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" in datagrid1 after clicking the data any one can help me to sort out
rizvan sivally
After selecting what data you are getting this exception..?? show your code.. :)
with regards Karthik Harve
-
"Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index" in datagrid1 after clicking the data any one can help me to sort out
rizvan sivally
share your code. When I face this problem,it is due to I have two gridviews and on click of second gridview linkbutton, I was using First gridview index.Thats the mistake. FOr Gridview2 I was used
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = GridView1.Rows[index];//here should be GridView2.Rows[index]so ckeck for same.