<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
  <channel>
    <title>HtmlEditor</title>
    <link>http://www.itwriting.com/phorum/list.php?3</link>
    <description><![CDATA[For discussion of the .Net HTMLEditor control]]></description>
    <language>EN</language>
    <pubDate>Fri, 17 Aug 2007 09:29:22 +0100</pubDate>
    <lastBuildDate>Fri, 17 Aug 2007 09:29:22 +0100</lastBuildDate>
    <category>HtmlEditor</category>
    <generator>Phorum 5.1.25</generator>
    <ttl>60</ttl>
    <item>
      <title>Re: How to add a new row in a selected table...</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3506,4013#msg-4013</link>
      <author>horsedrowner</author>
      <description><![CDATA[Sry for double post but the code doesnt work (for me)]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3506,4013#msg-4013</guid>
      <pubDate>Fri, 17 Aug 2007 09:29:22 +0100</pubDate>
    </item>
    <item>
      <title>Re: How to add a new row in a selected table...</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3506,4012#msg-4012</link>
      <author>horsedrowner</author>
      <description><![CDATA[what do you mean with 'row.m' ?]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3506,4012#msg-4012</guid>
      <pubDate>Fri, 17 Aug 2007 09:21:59 +0100</pubDate>
    </item>
    <item>
      <title>Re: How to add a new row in a selected table...</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3506,3512#msg-3512</link>
      <author>bricke</author>
      <description><![CDATA[mshtml.IHTMLTable t ;<br />
					mshtml.IHTMLElement currentElement = (mshtml.IHTMLElement)this.htmlEditor1.CurrentElement;<br />
					if(currentElement.GetType().Name == &quot;HTMLTableCellClass&quot;)<br />
					{<br />
						mshtml.HTMLTableCellClass td = (mshtml.HTMLTableCellClass)currentElement;<br />
						t = (mshtml.IHTMLTable)td.offsetParent;<br />
						mshtml.HTMLTableRowClass row = (mshtml.HTMLTableRowClass)td.parentElement;<br />
						TableInsertRow(row.sectionRowIndex+2,t);<br />
						//insert a new row under the cursor<br />
					}<br />
<br />
<br />
//this is the table insert row method<br />
<br />
		private void TableInsertRow(int index, mshtml.IHTMLTable table)<br />
		{<br />
				mshtml.HTMLTableRowClass row = (mshtml.HTMLTableRowClass)table.insertRow(index-1);<br />
				row.m<br />
				for(int i=0; i&lt;table.cols; i++)<br />
				{<br />
					mshtml.IHTMLElement c = (mshtml.IHTMLElement)row.insertCell(-1);<br />
					c.innerHTML = &quot; &quot;;<br />
				}<br />
		}<br />
<br />
//index-1 is for start conting from 1 and not from 0<br />
<br />
<br />
<br />
Post Edited (02-06-07 09:30)]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3506,3512#msg-3512</guid>
      <pubDate>Tue, 06 Feb 2007 09:29:38 +0000</pubDate>
    </item>
    <item>
      <title>Re: How to add a new row in a selected table...</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3506,3511#msg-3511</link>
      <author>Clyde Davies</author>
      <description><![CDATA[Are you going to post it then, or leave us all wondering? ;-)<br />
<br />
]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3506,3511#msg-3511</guid>
      <pubDate>Tue, 06 Feb 2007 09:26:18 +0000</pubDate>
    </item>
    <item>
      <title>Re: How to add a new row in a selected table...</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3506,3509#msg-3509</link>
      <author>bricke</author>
      <description><![CDATA[Solved...]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3506,3509#msg-3509</guid>
      <pubDate>Mon, 05 Feb 2007 11:27:05 +0000</pubDate>
    </item>
    <item>
      <title>How to add a new row in a selected table...</title>
      <link>http://www.itwriting.com/phorum/read.php?3,3506,3506#msg-3506</link>
      <author>bricke</author>
      <description><![CDATA[Hi, if I create a new table, the table cames with a particular number of columns and row, is there a system to add the number of row of a particular table (the table where the cursor is on) ??<br />
<br />
Could you give me some example?<br />
I'm new to C#...]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,3506,3506#msg-3506</guid>
      <pubDate>Fri, 02 Feb 2007 17:21:51 +0000</pubDate>
    </item>
  </channel>
</rss>
