Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
increment of row data bound field
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Deepak jena
7y
227
1
Reply
Hello Sir,
In my project inside a grid view one textbox value i want to increse its value when rowcommand button add(+) click ed,Sir Please give me the solution urgent sir.
i am using this code
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
DataTable dt = (DataTable)Session["trndata"];
int i = 1;
int rowindex = int.Parse(e.CommandArgument.ToString());
((TextBox)(GridView1.Rows[rowindex].FindControl("txtquantity"))).Text = i.ToString();
if (e.CommandName == "Add")
{
i++;
((TextBox)(GridView1.Rows[rowindex].FindControl("txtquantity"))).Text = i.ToString();
CountTotal();
}
Attachment:
Capture4.rar
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
What is the use of custom action invoker in mvc
how can i insert textbox values into database in c#