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
ashwini patel
NA
143
9.5k
How to select values from gridview and give in textbox
Sep 4 2018 1:33 AM
I need to check whether the cells of a particular column in gridview has certain values. If the cells contain values it should do some action. I have attached my code.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (TextBox1.Text != "")
{
if ((e.Row.Cells[3].Text == "1") && (e.Row.Cells[3].Text == "2"))
{
Label3.Visible = true;
}
}
}
}
It is not checking the AND condition. If i replace it by OR statement it works
Reply
Answers (
7
)
Hashtag functionality like Instagram using C#
how could i make connection with AX using vb.net?