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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:02:01+00:00 2026-05-27T20:02:01+00:00

I thought that would have been simple but it is not working. I can,

  • 0

I thought that would have been simple but it is not working.

I can, from the lightswitch screen designer, hide a field so that it is not visible at runtime. I see that lightswitch adds a Hidden attribute to the field in its lsml file.

But, how would I have a default of not visible for some fields coming from RIA services ?

I tried adding a ScaffoldColum(false) attribute to the entity field… no effect. (even tried true just in case I misunderstood the attribute).

Furthermore I tried other attributes without success.

  • Display(AutoGenerateField = false)
  • EditorBrowsable(EditorBrowsableState.Never)
  • 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-27T20:02:05+00:00Added an answer on May 27, 2026 at 8:02 pm

    When you create a RIA service, & attach it as a data source, LightSwitch treats it as an entity/table, the same as any of it’s own entities. Even though the LSMLS file has “hidden” attributes applied to some properties, this really only means that the “Display By Default” checkbox has been unticked for that property in the table designer.

    Unticking this box means that in any auto-generated screens that property won’t be displayed. If you create your own screen, based on an entity, the screen designer will omit adding those properties to the visual tree.

    The only way I know of to “hide” a property is to uncheck that box in the table designer, but it has to be done in LS, it can’t be done in the RIA service itself. Maybe in a future version, if enough people express a desire for this functionality. You can alway go to the Connect website & submit a “suggestion”.

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

Sidebar

Related Questions

This is a simple one, and one that I thought would have been answered.
I would have thought that this would be an easy thing to do, but
I initially thought that 64 bit instructions would not work on OS-X 10.5. I
I thought by placing these two lines that it would prevent the page from
I'm having trouble with something that I thought would be easy... I can't get
From a lot of what I've been reading, it seems that you always would
I've been working on a c++ project for a while now, but would like
I'm trying to do something that I thought was simple but doesn't appear to
I thought that it would be fun to present some classic CS problems and
I was trying to get my head around XAML and thought that I would

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.