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
Jes Sie
744
1.2k
282.2k
Check If All Values in a Column of a Gridview are the same
Aug 26 2019 3:18 AM
Hello guys I need your help again.
I have a gridview and one column has a boolean value. Now, If all rows in that column equals to TRUE, I will do my stuff.
protected
void
gvQuotationDetails_RowDataBound(
object
sender, GridViewRowEventArgs e)
{
if
(e.Row.RowType == DataControlRowType.DataRow)
{
CheckBox cbNego = (CheckBox)e.Row.FindControl(
"cbNegotiate"
);
CheckBox cbApp = (CheckBox)e.Row.FindControl(
"cbApprove"
);
if
(cbNego.Checked)
{
cbNego.Enabled =
false
;
}
if
(cbApp.Checked)
{
cbApp.Enabled =
false
;
cbNego.Enabled =
false
;
}
// if all row values in cbApp == true,
//update quotation header
}
}
Thanks a lot.
Reply
Answers (
2
)
Ajax call and Csharp asp.net
learn asp.net web forms or MVC