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
naveen sanagasetti
NA
7
1.8k
GridView Selected Items
Sep 18 2012 2:43 AM
To get the ListBox selected Items, i wrote like this . simillarly instead of ListBox i'm using GridView.How to write the same code.In Girdview i have some rows i want to read all the values and store it into a string datatype.
ListBox LstBox = (dgi.FindControl("lstType") as ListBox);
string strselect = "";
for (int j = 0; j < LstBox.Items.Count; j++)
{
ListItem li = LstBox.Items[j];
if (li.Selected)
{
strselect = strselect + ", " + li.Value;
}
}
Reply
Answers (
1
)
books for c# beginners
date calculation