I am new to developing for AutoCAD. I am using VB.NET to create a table, as standard the first row of the table is a Title row, I want to change this to a data row.
Please can someone tell me how to do this?
Try to create table with number of rows on 2 rows more, then
delete first two rows (make sure that it was the title and header rows)
In my code practice, I also have to remove the first title row after inserting the second data row below (the header and data rows have the same number of columns). The following code snippet will help:
table.InsertRows(1, table.RowHeight(0), 1)
Thanks for getting back to me guys, I have done what is suggested and the row is being inserted then the top one being deleted, however the top row is still a title row.
I have checked and when it is inserted it is a data row, but once the top one is deleted it becomes a title row.
Another way to set style for every rows:
for (int n=0 to tbl.Rows.Count-1)
tbl.Rows[n].Style = "Data";
Thanks again for the help, in the end the probelm was solved when I inserted the data in to the table, the header row sorted itself out and became a data row. Not sure why but ultimately got the result I wanted.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register