<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Make Table Header a Data Row in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947658#M3022</link>
    <description>&lt;P&gt;I'm inserting a standard TableStyle that has a header row and data rows beneath.&lt;/P&gt;&lt;P&gt;The header row is a single merged cell that I want changed to a data row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to either&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Unmerge row(0) cells&lt;/LI&gt;&lt;LI&gt;Change row(0)'s style to "Data"&lt;/LI&gt;&lt;LI&gt;Hide or suppress row(0)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can't figure out how to achieve any of the three, and can't find any thread posts successful in achieving it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 18:18:49 GMT</pubDate>
    <dc:creator>SRSDS</dc:creator>
    <dc:date>2024-08-08T18:18:49Z</dc:date>
    <item>
      <title>Make Table Header a Data Row</title>
      <link>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947658#M3022</link>
      <description>&lt;P&gt;I'm inserting a standard TableStyle that has a header row and data rows beneath.&lt;/P&gt;&lt;P&gt;The header row is a single merged cell that I want changed to a data row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to either&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Unmerge row(0) cells&lt;/LI&gt;&lt;LI&gt;Change row(0)'s style to "Data"&lt;/LI&gt;&lt;LI&gt;Hide or suppress row(0)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can't figure out how to achieve any of the three, and can't find any thread posts successful in achieving it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 18:18:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947658#M3022</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2024-08-08T18:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Make Table Header a Data Row</title>
      <link>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947862#M3023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;table.Rows[0].Style = "_DATA";&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Aug 2024 20:05:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947862#M3023</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-08-08T20:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Make Table Header a Data Row</title>
      <link>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947880#M3024</link>
      <description>&lt;P&gt;That's one of the ones I tried, but got an&amp;nbsp;&lt;SPAN&gt;"eNotApplicable" error as&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/net/create-a-table-with-no-title-header-rows/m-p/8011157/highlight/true#M59061" target="_blank" rel="noopener"&gt;this person&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;did.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 20:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947880#M3024</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2024-08-08T20:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Make Table Header a Data Row</title>
      <link>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947963#M3025</link>
      <description>&lt;P&gt;i use the code in this post.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/c-autocad-2017-create-new-table-style-with-title-header-and-data/m-p/7251375" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/net/c-autocad-2017-create-new-table-style-with-title-header-and-data/m-p/7251375&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 20:57:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947963#M3025</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2024-08-08T20:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Make Table Header a Data Row</title>
      <link>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947995#M3026</link>
      <description>&lt;P&gt;You have to set the TableStyle property before setting the Rows[0].Style.&lt;/P&gt;
&lt;P&gt;Here's an example:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[CommandMethod("TEST")]
public static void Test()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;

    int numRows = 4;
    double rowHeight = 9.0;
    int numColumns = 3;
    double columnWidth = 40.0;
    using (var tr = db.TransactionManager.StartTransaction())
    {
        var tableStyles = (DBDictionary)tr.GetObject(db.TableStyleDictionaryId, OpenMode.ForWrite);
        var tableStyle = tableStyles.GetAt("Standard");

        var table = new Table();
        table.TableStyle = tableStyle;
        table.Columns[0].Width = columnWidth;
        table.InsertColumns(1, columnWidth, numColumns - 1);
        table.InsertRows(1, rowHeight, numRows - 1);
        for (int i = 0; i &amp;lt; numRows; i++)
        {
            table.Rows[i].Style = "_DATA";
        }

        table.Position = Point3d.Origin;
        var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
        curSpace.AppendEntity(table);
        tr.AddNewlyCreatedDBObject(table, true);
        tr.Commit();
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Aug 2024 21:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12947995#M3026</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-08-08T21:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Make Table Header a Data Row</title>
      <link>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12948099#M3027</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I've spent quite a long time trying to work that out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 22:24:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/make-table-header-a-data-row/m-p/12948099#M3027</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2024-08-08T22:24:10Z</dc:date>
    </item>
  </channel>
</rss>

