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
priya
NA
32
11.5k
color alternate rows in a table
Mar 29 2015 7:10 AM
this is for color alternate row.............
public void delcoloralternaterow()
{
mshtmlTable table = null;
mshtmlTableRow row = null;
mshtmlTableCell cell = null;
GetTableElement(out table, out row, out cell);
if (table != null)
{
try
{
HtmlElement table1 = getTableHTMLElement();
int count = 0;
foreach (HtmlElement row1 in table1.GetElementsByTagName("tr"))
{
if (count % 2 == 0)
{
row1.Style = "background-color: none";
}
count++;
}
}
catch (Exception ex)
{
throw new HtmlEditorException("Unable to colour the row", "Colour row", ex);
}
}
i just want to
Alternate row colors should work on the rows below cursor
..
help me out to do this...
Reply
Answers (
1
)
Retriving Data,Perform Calculations and show those data
How can i set checked and uncheck checkbox column in Gridvie