473,395 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to edit gridview

malav123
217 100+
hi,
I am using gridview control in asp.net.... i want to edit the gridview as like spreadsheet allows to edit... so is there any way to edit the gridview just like table editing..... waiting for reply....
thanks in advance....
Mar 10 '08 #1
2 1260
saran23
28
hi,
I am using gridview control in asp.net.... i want to edit the gridview as like spreadsheet allows to edit... so is there any way to edit the gridview just like table editing..... waiting for reply....
thanks in advance....
Hi, To edit data in gridview, use the showeditbutton=true option, this will create a column with edit button for all the rows,
U have to use textbox for the columns to be edited in the EditItem Template of the gridview,
When u click the the edit button the textboxes will be generated for the clicked row and u can edit the values
U have to write code for binding the values in the textbox and saving the edited items, only the design for edit is automated in grid view.
use text='<%#Bind("dbcolumnname")%> in the textbox to bind the values.
Mar 10 '08 #2
malav123
217 100+
Hi, To edit data in gridview, use the showeditbutton=true option, this will create a column with edit button for all the rows,
U have to use textbox for the columns to be edited in the EditItem Template of the gridview,
When u click the the edit button the textboxes will be generated for the clicked row and u can edit the values
U have to write code for binding the values in the textbox and saving the edited items, only the design for edit is automated in grid view.
use text='<%#Bind("dbcolumnname")%> in the textbox to bind the values.
thanx for reply...
But i am not properly getting how to write the code for which you gave me suggestion... so if you can than please send me some code for gridview that how to convert rows into textbox and how to save edited textbox information into database..... i am awaiting for your reply...
again thanx for reply....
Please send me suggestion as soon as possible.....
Mar 18 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Michael | last post by:
Hi, I'm learning how to user GridView, I add some template fields to the GridView, and put a "Edit" LinkButton in Column, I have also setup the EditItemTempate for each column. Now, when the...
1
by: John A Grandy | last post by:
I'm not using SqlDataSource or ObjectDataSource. I'm handling events , similar to approach commonly used in 1.1. DataGrid. My question is : How do I configure a GridView's edit mode row format ?...
3
by: misiek | last post by:
Hi all. I have following problem: 1. In my web page I have a GridView control, which does not have a DataSourceId set in designer. 2. When user presses Start button then I create...
1
by: Marc | last post by:
Hi, I made a detailsview for inserting records. I also made a gridview for editing and deleting the same records. The keyfield is an autonumbering field in Access (pcnr). My problem is: I can...
2
by: VB Programmer | last post by:
I have a gridview control with several data fields. When the user clicks 'edit' for the row I want the user to be able to edit a particular text field. Under that 'edit' textbox is a button. ...
0
by: nitinp | last post by:
I am facing the problem in editing records in child gridview which i have placed in the parent gridview's cell. I have bound both parent and child with different sqlDataSource objects. I have...
1
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a table with a field with a bit datatype. I use a gridview to edit that a row in that table. I use SQLDataSource and enable editbutton property to get a link to edit the row. That all...
3
by: Joey | last post by:
asp.net 2.0 VS2005 C# In my web app I added a gridview and then manually configured boundcolumns, for an in-session dataset to act as a datasource. Then I added an Edit commandfield. When I...
2
by: David Ching | last post by:
I am not getting any response to my previous question on reusing a DetailsView to insert and edit the selected row in a GridView. So I'll ask an even more basic question. Newbie alert! ;) When...
12
by: dorandoran | last post by:
I followed this link to add new record from gridview. So far it's good but I need to modify the last piece to edit the record that I will supply the record id. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.