Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 27, 2009 12:19 PM by meeram395
Feb 23, 2009 04:07 PM|LINK
if (GridView1.EditIndex >= 0)
GridViewEditIndex = -1;
Anybody have any idea why it is happening? How can make the row collapsible even though the Update and Cancel button in the Grid is open in GridRow? Please help. Please let me know if I need to provide more info.
Feb 26, 2009 07:41 AM|LINK
Do you mean "row collapsible" is in edit mode in GridView? If so you can save the EditIndex in a Session or ViewState and in SelectedNodeChanged event of TreeView you can set the GridView to this EditIndex (Remember setting EditIndex should be before binding
If my understanding is not correct, please describe in detail and show some source code and events.
Feb 27, 2009 12:19 PM|LINK
Thankyou for your replies. What you haves said is perfectly right. The setting of the EditIndex should be done before binding the GridView. That's where I went wrong. I was actually setting after binding it. That' where the problem
Issue is resolved and Thanks a lot for the same.