CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Location
    usa
    Posts
    33

    easy question : how to create a table with only columns and ...?

    this is just an easy question :
    how do i create a table with only columns and no rows and the table's height is its column height.

    can i specify the table's column width ?

    thanks

    http://members.xoom.com/lookads

  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: easy question : how to create a table with only columns and ...?

    It is very easy. U will have to create a TableModel (extending from AbstractTableModel). This model will return no of columns and column names as they are, but it will return no of rows as zero.

    This should do what u want.

    Also u can do 'getColumnModel().getColumn( iCol )'. With this column object u can set/get width of the column etc.

    - UnicMan
    http://members.tripod.com/unicman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured