Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6203049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:50:46+00:00 2026-05-24T04:50:46+00:00

i am using windows applications. in that form i am using DataRepeater control. i

  • 0

i am using windows applications. in that form i am using DataRepeater control.
i display numbers in that control. (vs 2010)

My code

 DataTable dt = new DataTable();
                dt.Columns.Add("c1");
                dt.Rows.Add("1");
                dt.Rows.Add("2");
                dt.Rows.Add("3");
                dt.Rows.Add("4");
                dt.Rows.Add("5");
                dt.Rows.Add("6");
                dt.Rows.Add("7");
                dt.Rows.Add("8");
                dt.Rows.Add("9");
                dt.Rows.Add("10");
                textBox1.DataBindings.Add("Text", dt, "c1");
                dataRepeater1.DataSource = dt;

i changed a Layoutstyle is Horizontal that time it display all numbers
in row. But my aim is one row display only 6 numbers after that 7th
number onwards it display next row. similarly to all numbers.

How to do this?..

Any ideas are welcome.

please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:50:48+00:00Added an answer on May 24, 2026 at 4:50 am

    You will need to package the 6 number batches into another class:

    class Batch
    {
        public int One {get;set;}
        // etc
    }
    

    And give the data repeater a list of these:

    var l = new List<Batch>();
    dataRepeater1.DataSource = l;
    

    Your repeater will then need controls inside it that look at the properties on the Batch class. The class wrapper is required because the repeater will repeat for each item in a collection (row in a DataTable for example) so to group them, you need to do that manually.

    Further reading:

    http://blogs.msdn.com/b/vsdata/archive/2009/08/12/datarepeater-control-for-windows-forms.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using windows application and I have four combo boxes(comboeventname,combosendtype,comboType,comboschedule) in that form....
I have a form in a Windows form application that I want to display
I have a windows form that creates multiple console applications of the same program
I have an application that is using Windows Authentication and a SqlRoleProvider for user
Today we have a windows application that, using an OCX, creates a web page
I'm building a windows application that search items from sharepoint document libraries, using the
I am developing a WPF application that must run using Windows Classic theme. The
I have a Windows GUI application that's using the Qt framework (currently version 3.3.5,
I've got a web application that is running against Windows Authentication using our Active
We are using c++ to develop an application that runs in Windows CE 4

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.