File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create dynamic rows and columns in HTML tables

 
Nagaraju Mulinti
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need to create rows and columns dynamically in HTML tables. I am not sure how to proceed to create dynamically. Can you please help me in this regards and also provide specific code if possible as I am not much more familiar with HTML.


Thanks in advance..!
 
samir singha
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<TR> tag creates row in a table and </TR> ends the row in html. similarly, <TD> creates a column and </TD> ends a column. You can use two for (or any other loops) to create rows and columns dynamically. For example,

<tr>
<td>column 1</td>
<td>column2</td>
</tr>

will create 1 row and two columns. Try to implement it with loop to create as many as rows any columns you want to create dynamically.
 
Himanshu Kansal
Ranch Hand
Posts: 257
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Samir's answer fulfills your request then it's good else if you want to do this on the client side, it would be a different story altogether. JavaScript would be used.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic