Remove border of selected cell in htmltable in windows form....
public void stylecell()
{
mshtmlTable table1 = null;
mshtmlTableRow row1 = null;
mshtmlTableCell cell1 = null;
GetTableElement(out table1, out row1, out cell1);
HtmlElement table = getTableHTMLElement();
try
{
if (table != null)
{
HtmlElement selectedCell = table.GetElementsByTagName("tr")[row1.rowIndex].GetElementsByTagName("td")[cell1.cellIndex];
{
selectedCell.Style = "border-right:Red ";//border-top:Red;border-left:Red;"; //border-bottom: none";
}
}
else
{
throw new HtmlEditorException("Cell not selected", "underlineComand");
}
}
catch (Exception ex)
{
// process the standard exception
OnHtmlException(new HtmlExceptionEventArgs(null, ex));
}
}