Repeating Columns Visual Studio .Net 4.0 C# Windows Forms
I am using C# and Visual Studio .Net 4.0 and am writing a program (not a web page) for a Windows 7 environment. I would like to display data on a Window’s form in the following manner (basicallly a repeating columns format)
Title1 Title2 Title1 Title2
Data1 Data1a Data4 Data4a
Data2 Data2a Data5 Data5a
Data3 Data3a Data6 Data6a
Which would be the best tool to use to accomplish such a layout: datagrid, dataview, datalist etc.
I’m pretty sure this can be accomplished via a brute force approach using for loops to arrange the label/data but am hoping a more elegant approach can be used (i.e specifying the column length). After searching forums I have noticed a “repeater” construct but I don’t think this is available in the Visual Studio 2010 C# toolbox.
There will be approximately 13 rows of data and six columns in the actual program If worse comes to worst, maybe I should just set up a form of text boxes with labels .
Any insights would be appreciated
Last edited by l_long_island; 12-31-2012 at 11:00 AM.
Reason: made table simpler