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
Naveed Zaman
328
5.5k
1.5m
List View Control for desktop application
Jul 18 2015 2:16 AM
Dear Team Hi,
I want change the color of deleted marked row in Listview control for example RED. data is coming from database.
foreach
(
DataRow
myrow
in
table4.Rows)
{
listView2.Items.Add(myrow[0].ToString());
listView2.Items[listView2.Items.Count -1].SubItems.Add(myrow[1].ToString());
listView2.Items[listView2.Items.Count -1].SubItems.Add(myrow[2].ToString());
if
(myrow[3].ToString() ==
"Deleted"
)
{
listView2.Items[0].UseItemStyleForSubItems =
false
;
listView2.Items[0].SubItems[1].ForeColor =
Color
.Red;
listView2.Items[0].SubItems[2].ForeColor =
Color
.Red;
}
else
{
listView2.Items[0].UseItemStyleForSubItems =
false
;
listView2.Items[0].SubItems[1].ForeColor =
Color
.Green;
listView2.Items[0].SubItems[2].ForeColor =
Color
.Green;
}
Reply
Answers (
2
)
need code to convert gridview to pdf ?? anyone help ??
Help Regarding migrating projects from vs2008 to vs2013