Solved

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

Posted on 2012-03-28
6
236 Views
Last Modified: 2012-08-14
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
Comment
Question by:KavyaVS
6 Comments
 
LVL 11

Assisted Solution

by:rajvja
rajvja earned 100 total points
ID: 37776552
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
 
LVL 16

Accepted Solution

by:
MikeMCSD earned 100 total points
ID: 37776586
0
 
LVL 20

Assisted Solution

by:BuggyCoder
BuggyCoder earned 300 total points
ID: 37776685
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:KavyaVS
ID: 37776811
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
 
LVL 20

Assisted Solution

by:BuggyCoder
BuggyCoder earned 300 total points
ID: 37776913
Set the EditIndex property to the appropriate row and then ReBind the GridVIew again to it's DataSource.  Hope this helps.
0
 

Author Closing Comment

by:KavyaVS
ID: 37792929
Thanks
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now