• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

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
0
KavyaVS
Asked:
KavyaVS
4 Solutions
 
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now