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
Deepak jena
NA
45
1.7k
a gridview row databound value change
Apr 11 2017 6:59 AM
in agridview row databound if aquantity value 2.when we add a new row the previous quantity valuealso return 1 .but i want this textbox value assign with previous value 2.plz give the solution.here i have written code.
if (e.Row.RowType == DataControlRowType.DataRow)
{
int i = 1;
TextBox t = (TextBox)e.Row.FindControl("txtquantity");
t.Text = Convert.ToString(i);
Session["quantity"] = t.Text;
txttotalitem.Text = t.Text;
Session["quantity"] = GridView1.Rows.Count;
i want only row which added newly his value will 1 but previous row value means old row value remain unchanged.
Attachment:
Capture12.rar
Reply
Answers (
1
)
How to cal Web API in Asp.Net Code Behind Page ?
Is it possible to retrieve and show view name dynamicallyMVC