Display info in a Table without using a DataGrid. How?

Hi,

I need to display Forms controls in a tabular format. For example, imagine a table of 5 rows by 1 column and each cell containing one radio button. The radio button will have varying text length (and font type and font size) so where they are placed in the form isn't known at design time.

If there was an equivalent of the System.Web.UI.WebControls.Table but for Windows form programming that would be ideal (but I haven't seen one yet!) because it could place the controls on the form for me. I could even specify "cell spacing" etc.

I've looked at the DataGrid but it doesn't looks far from ideal. I've thought about dynamically creating radio buttons and placing them on the form just below where the radio button above it finishes.

So I'm looking for an easier approach before I go with this last method.....Has anyone seen anything that can make this easier

Thanks in advance,


Chiz.


Answer this question

Display info in a Table without using a DataGrid. How?

  • pgupta

    Thanks. OK, I'll do it this way for phase one.

    Out in the future, I want the application to be able to display other more complex stuff (like Flash, Video, Sound etc) so I'm thinking .....I wonder if you can get a control that acts like Windows Explorer 

    I'm pretty sure there must be because I saw one being used by a VB6 application a few years ago.

    Does Microsoft have one of these control I can use in my apps  Do I have to pay for it  Where do I get it

    One last question: Is there another way to display Flash, Video, Sound in a Windows Application  Any hints would be great.

    Thanks,


    Chiz.

  • Rambo

    I have to do this with a training application (exams) - I've resorted to keeping everything in a panel, adding radio buttons and doing the math (5 pixels etc below previous one).

    then, clearing the controls is very easy.

    I think this way is the easiest, HTH

  • Display info in a Table without using a DataGrid. How?