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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:50:45+00:00 2026-06-13T11:50:45+00:00

I am using the gridview control for displaying records. I would like the first

  • 0

I am using the gridview control for displaying records.
I would like the first 6 records to be displayed from the datasource.
The remaining rows (only for COL2 and COL4) should be replaced with the question mark character

Something like this one.

COL1  COL2  COL3  COL4  COL5 

row1  row1  row1  row1  row1
row2  row2  row2  row2  row2
...
...
row6  row6  row6  row6  row6
row7   ?    row7   ?    row7
row8   ?    row8   ?    row8
row9   ?    row9   ?    row9
  • 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-06-13T11:50:46+00:00Added an answer on June 13, 2026 at 11:50 am

    You can use the RowIndex of the GridViewRow in RowDataBound to change the cell-text to ?:

    protected void gridView1_RowDataBound(Object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            if(e.Row.RowIndex > 5)
            {
                e.Row.Cells[1].Text = "?";
                e.Row.Cells[3].Text = "?";
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using gridview control to display records. i am using System.Collections.Generic List<> as
I am using a WebForms GridView control. When a user clicks Update on a
Using asp.net 3.5 Gridview control, visual studio 2008. I have played with all the
I am using an ASP.NET GridView control, created dynamically with C# on a SharePoint
I am using the ASP.NET3.5 gridview control in a new project. My problem is
I am using GridView for displaying groups of different sets of items in a
I am looking for some examples for gridview for common tasks like displaying, editing,
How can I create a gridview control in c# asp.net which acts like an
I would like to be able to bulk edit all the rows for one
i am using LinqDataSource and a gridview control and my paging/sorting works fine but

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.