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 6827487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:16:17+00:00 2026-05-26T22:16:17+00:00

In a C# based Win forms application I am working on a report using

  • 0

In a C# based Win forms application I am working on a report using Microsoft Report Viewer. There is a requirement that I have to display multiple fields in one cell of the table, all in a new line.

  • I have tried to use new line characters in expression but didnt work. There is no multi-line property of textbox.
  • I have tried to use a list with multiple textboxes in the cell. But
    it gives error that:

The tablix has a detail member with inner members. Detail members can
only contain static inner members

Some people say something like adding groups but I could not figure how to do this.

Could you please let me know how can show multiple fields in row like:

Product Name
Product Color
Poduct Size

Thanks to @Hemant’s suggestion I managed to solve it like this:

In Report -> Report Properties -> Code, I entered this code:

Function GetBreakupstring(value) as String

    return value.Replace("--M--", Environment.NewLine) 

End Function

In Textbox’s expression I entered:

=Code.GetBreakupstring(Fields!Name.Value & "--M--" & Fields!IDProducts.Value & "--M--" & Fields!Color.Value)

Then I tried to simple use Environment.NewLine in expression which I also worked. This is what expression is looking right now:

=Fields!Name.Value & Environment.NewLine & Fields!IDProducts.Value & Environment.NewLine & Fields!Color.Value
  • 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-26T22:16:18+00:00Added an answer on May 26, 2026 at 10:16 pm

    you can write a function in VB Code that breaks your input into multiple line and call that function in text box
    as
    Textbox expression= Code.GetBreakupstring(field.parameter)

    and write this
    public sub GetBreakupstring(value){

    return break value;
    }

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

Sidebar

Related Questions

Using VB.net 4.0 I have a Winforms application that is loosely based on MVVM.
We have a desktop application that has been using MapPoint for displaying data on
I have a Winforms application that the user uses to take a region based
I have an WinForms application that is deployed using Visual Studio 2008's publish (ClickOnce)
I have a WSE 3.0 based web service, and a WinForms client application that
I have been working on a C# WinForms application that registers several hot keys
Consider a normal customer-orders application based on MVC pattern using WinForms. The view part
I have a winforms (VB 2008) based app that I'm developing and I want
I have a class that handles events from a WinForms control. Based on what
We have .NET WinForms based application and it is expected to work on at

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.