TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kumartyr
NA
55
28k
How to delete / edit a row in gridview dynamically
Nov 12 2013 1:34 AM
How to delete or edit a row in gridview dynamically with the delete/edit button present in the columns of gridview itself
please see the image for understanding
i have tried rowdeleting event for deleting & rowediting for edit but no use
using VS2005 asp.net C# 2.0
below is what i tried in rowdeleting event
protected void GridViewFRM_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
if (connection.State == ConnectionState.Closed)
{
connection.Open();
}
OracleCommand OLCOM3 = new OracleCommand();
OLCOM3.CommandText = "Delete from FORUM WHERE QUESTION='" + GridViewFRM.DataKeys[e.RowIndex].Values[0].ToString() + "'";
OLCOM3.ExecuteNonQuery();
DisplayUserData(); }
Attachment:
picture.zip
Reply
Answers (
1
)
Please help me in the my project description and feilds
Get the file path of upload file control in asp.net