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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:18:38+00:00 2026-05-24T05:18:38+00:00

@if (Model.ActivityCollection.Count > 0) { var grid = new WebGrid(source: Model.ActivityCollection, rowsPerPage: 12, canSort:

  • 0
  @if (Model.ActivityCollection.Count > 0)
        {
        var grid = new WebGrid(source: Model.ActivityCollection, rowsPerPage: 12, canSort: false);   
            @grid.GetHtml(tableStyle: "webGrid",
            headerStyle: "header",
            alternatingRowStyle: "alt",
            columns: grid.Columns(
            grid.Column("EffectiveDate", "Effective Date", style: "date"),
            grid.Column("PremiumPaymentAmount", "Premium Payment Amount", style: "amount"),
            grid.Column("PaymentType", "Payment Type", style: "date")
           ));
        }
else
        {

        }

I would like to display a message “No Payment Information Found” inside the web grid in the above else statement. Can someone help me with this?

  • 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-24T05:18:39+00:00Added an answer on May 24, 2026 at 5:18 am
    <div class="grid" style="margin-left:5px;" id="grid">          
            @if (Model.ActivityCollection.Count > 0)
            {
                var grid = new WebGrid(source: Model.ActivityCollection, rowsPerPage: 12, canSort: false);   
                @grid.GetHtml(tableStyle: "webGrid",
                headerStyle: "header",
                alternatingRowStyle: "alt",
                columns: grid.Columns(
                grid.Column("EffectiveDate", "Effective Date", style: "date"),
                grid.Column("PremiumPaymentAmount", "Premium Payment Amount", style: "amount"),
                grid.Column("PaymentType", "Payment Type", style: "date")
               ));
            }
            else
            {
                <div class="grid">
                <table cellspacing="0" width="80%">
                   <thead>
                        <tr>
                            <th>Effective Date</th>
                            <th>Premium Payment Amount</th>
                            <th>Payment Type</th>
                            </tr>
                    </thead>
                    <tbody>
                     <tr>
                            <td colspan="3" align="center" ><br />No payment information found<br /><br /> </td>
                     </tr>                     
                    </tbody>
                </table>
                <br/><br/><br/><br/>
                </div>
            }
            </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My model: public class Father { Set<Son> sons = new HashSet<Son>(); String name =
My model class Member(models.Model): dob = models.DateField('dob') form class MemberForm(ModelForm): dob = forms.DateField(required=False, input_formats='%Y-%m-%d')
model.RegisterContext(typeof(NorthwindDataContext), new ContextConfiguration() { ScaffoldAllTables = true, MetadataProviderFactory = (type => new DefaultTypeDescriptionProvider(type, new
@model MedicalVariance.Models.ViewModels.IndividualProfile @Html.ListBox(AdministrationErrorSelected, Model.AdministrationErrorListBox, new { @class = chzn-select }) It look great and
model it's possible? yes|no|javascript? ok. i'll try. Here must be: Header. Fixed size, fixed
Model Code: class Task(db.Model): complete = db.BooleanProperty(default=False) HTML Code: <input type=checkbox name=complete value=True />
Model == null ? new SelectList(genders, Value, Text) : new SelectList(genders, Value, Text, Model);
Model <?php class Tonguetwister extends AppModel { var $name = 'Tonguetwister'; //The Associations below
model: [Display(Name = Status)] public bool IsApproved { get; set; } in view: @Html.Grid(Model.Users).Sort(Model.GridSortOptions).Columns(column
//Model var Dog = Backbone.Model.extend({ name:'', breed:'' }); //Collection var Dogs = Backbone.Collection.extend({ model

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.