how to split cell using mshtml c# window application
mshtmlTable table1 = null;
mshtmlTableRow row1 = null;
mshtmlTableCell cell1 = null;
GetTableElement(out table1, out row1, out cell1);
HtmlElement table = getTableHTMLElement();
if (table != null)
{ int index = row1.rowIndex;
int numberCols = row1.cells.length;
HtmlElement selectedCell = table.GetElementsByTagName("tr")[row1.rowIndex].GetElementsByTagName("td")[cell1.cellIndex];
HtmlElement nextcell = null;
//if (cell1.cellIndex < table.GetElementsByTagName("tr")[row1.rowIndex].GetElementsByTagName("td").Count + 1)
//{
foreach (mshtml.HTMLTableRow elementRow in table1.rows)
{
foreach (mshtml.HTMLTableCell elementCell in elementRow.cells)
{
nextcell = (HtmlElement)row1.insertCell(cell1.cellIndex+1);
//mshtml.IHTMLElement c = (mshtml.IHTMLElement)row1.insertCell(cell1.cellIndex + 1);
// c.innerHTML = " ";
}
selectedCell.OuterHtml = nextcell.OuterHtml + selectedCell.OuterHtml;
}