473,386 Members | 1,757 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,386 software developers and data experts.

How to use Edit Button control in Datagrid in ASP.net

Hi Friends

i am developing asp.net application using visual studio 2003 version. I know only vb script not c# or others. my requirement is like this "from sql server database i getting some table data and displaying on the datagrid.I had customised the datagrid with button column with (Edit,Update,Cancel) Option." I stucked up here.

my requirement is by pressing Edit button one column in the datagrid should come under edit mode. After editing the data by clicking on the update button it should update the data in the database, like wise by clicking on the cancel button it should cancel the edit process etc., so pls show me the way as i am using vb script.

Pls...pls...
Prasad
Nov 10 '10 #1
1 1922
Frinavale
9,735 Expert Mod 8TB
The GridView isn't really designed for editing columns but there is nothing preventing you from implementing your own custom version of what happens to the GridView when the user hits the edit button.

The first thing I would do is implement something that "highlights" the "selected column" when the user clicks a column header.

When the user hits the Edit button is the tricky part. You would have to put the whole GridView into "edit mode" but disable all of the columns that are not "selected".

It's not trivial work but it's doable.

-Frinny
Nov 12 '10 #2

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

Similar topics

8
by: Gilles T. | last post by:
How I can get element ID in the edit mode of datagrid control? If I not in the edit mode, there are no problem. <asp:TemplateColumn ItemStyle-CssClass="grid_column_width_3"...
0
by: Ante Perkovic | last post by:
Hi, I have this piece of code: <asp:datagrid id="dgRezervirano" runat="server" CssClass="rezervacije" AutoGenerateColumns="false" DataKeyField="id" Width="650px"> .... <asp:EditCommandColumn...
1
by: Matt Tapia | last post by:
I want to add a button within an Item Template column that will set the edit mode for the current item in the grid. can anyone tell me how to do it without adding an edit command column? Thanks!
1
by: Robert Wehofer | last post by:
Hello there! How can I get rid of following behaviour: If the edit button is clicked, the datagrid gets into edit mode. But it's very annoying that the new page is build up at the top. So if...
2
by: Alex | last post by:
I have a datagrid with two additional columns (edit, delete). However the edit and delete handlers in the code behind page are never reached. When I click on the delete or edit button the load...
0
by: doronb | last post by:
hello my question is : i define dynamic columns to datagrid , 4 columns are databound and 1 columne is "edit template column" and only this col editable , i define function for update when...
1
by: John M | last post by:
Hello, In Visual Studio .NET 2003, I want that when clicking on "edit" within the datagrid, I want to execute another web form, which I get the input of the data in the other web form. i.e :...
1
by: rp13 | last post by:
Hi, I am using a asp:datagrid which is editable. Though I have handlers wired to my edit, update & cancel events, some how when i click on the edit button nothing happens. The edit template...
0
by: slinky | last post by:
I had a successfully deployed datagrid reading an XML file and showing the data: Private Function MakeDataView() as DataView Dim myDataSet As New DataSet()...
2
by: slinky | last post by:
I had a successfully deployed datagrid reading an XML file and showing the data: Private Function MakeDataView() as DataView Dim myDataSet As New DataSet()...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.