Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-30-2012, 12:41 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 25

Rep: Reputation: 0
Repeating Columns Visual Studio .Net 4.0 C# Windows Forms

Hello All,
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


columns, forms, repeated, toolkit

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio.NET in Linux RySk8er30 Linux - Software 3 05-27-2009 04:11 PM
MS Visual Studio .NET in Linux? cootetom Linux - Software 1 03-03-2007 03:04 PM
e-commerce practice visual studio .net? ati General 1 06-03-2006 09:23 AM
visual M O L8ingN2dust Linux - Software 3 11-17-2005 10:10 PM
Free Windows XP and Visual Studio .Net redhatman Linux - General 1 10-13-2004 08:35 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration