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
Chriz L
NA
220
50.7k
Gridview - Update field while being on row edit mode
Feb 28 2019 2:17 AM
Hello,
I need some help with the GridView, you can find the html code below.
On edit mode, when ddlType changes I need lblAvg updated with the proper value (from ddlType) while keeping the row on edit mode.
Similarly, I have to do the same on new addition (insert).
Any kind of help will be highly appreciated.
"gv"
runat=
"server"
AutoGenerateColumns=
"false"
ShowFooter=
"true"
Font-Size=
"Small"
AllowPaging=
"True"
PageSize=
"20"
>
"20px"
HeaderText =
"ID"
Visible=
"false"
>
"lblID"
runat=
"server"
Text=
'<%# Eval("ID")%>'
>
"txtID"
runat=
"server"
Text=
'<%# Eval("ID")%>'
>
"300px"
HeaderText =
"Type"
>
"lblType"
runat=
"server"
Width=
"250px"
Text=
'<%# Eval("TypeDescription")%>'
>
"ddlType"
Width=
"250px"
runat=
"server"
>
"addDdlType"
Width=
"250px"
runat=
"server"
>
"150px"
HeaderText =
"Average"
>
"lblAvg"
runat=
"server"
Text=
'<%# Eval("Avg")%>'
>
"150px"
HeaderText =
"Percentage"
>
"lblPerc"
runat=
"server"
Text=
'<%# Eval("Perc")%>'
>
"txtPerc"
runat=
"server"
Width=
"100px"
Text=
'<%# Eval("Perc")%>'
>
"addtxtPerc"
Width=
"100px"
runat=
"server"
>
"150"
>
"btnEdit"
Text=
"Edit"
runat=
"server"
CommandName=
"Edit"
/>
"btnUpdate"
Text=
"Update"
runat=
"server"
CommandName=
"Update"
/>
"btnCancel"
Text=
"Cancel"
runat=
"server"
CommandName=
"Cancel"
/>
"btnInsert"
runat=
"server"
Text=
"Insert"
Width=
"100"
CommandName=
"Insert"
/>
"return confirm('Delete?')"
>
"btnDelete"
runat=
"server"
ImageUrl=
"~\Images\delete.png"
OnClick=
"Delete"
CommandArgument=
'<%#Eval("ID")%>'
/>
Reply
Answers (
2
)
Consume WCF service into Web Application
How to remove auto fill text in textbox