How to make the GridView editable with a button on the page

My aspx page has Table declared in it.In the page load event I am dynamically populating the Table  with Table cells and Table Cells with GridViews.
I added a Button on the page. When the user clicks the button dynamcally populated gridviews should be editable. How to do this.

Thanks
KavyaVSAsked:
Who is Participating?
 
rajvjaCommented:
Hi,

    At a time you can edit only one row in a gridview. What do you mean by editable by clicking a button?

GridView.Disabled = True/False
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
KavyaVSAuthor Commented:
Hi rajvja,
Yes, at a time we can edit only one row in a gridview.

I have a button outside the grid.When the user clicks on that button the Grid columns should be enabled. So the user can chnage the values.
I tried GridView.Enabled = true but it is not working. The gridview columns are still disabled.

Please give me any suggestions.

Thanks
0
 
BuggyCoderCommented:
Set the EditIndex property to the appropriate row and then ReBind the GridVIew again to it's DataSource.  Hope this helps.
0
 
KavyaVSAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.