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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:37:34+00:00 2026-06-18T05:37:34+00:00

I have autogenerated columns here from visitid and so on. The first column however

  • 0

I have autogenerated columns here from visitid and so on. The first column however was a templatefield. now I wanted to hide VisitID. I tried this code but it didn’t work. I am using vb as my codebehind

e.Row.Cells(1).Visible = False

enter image description here

  • 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-18T05:37:36+00:00Added an answer on June 18, 2026 at 5:37 am

    I have tried several ways but also ended with this code and it worked finally I just added a condition. I’m sorry maybe I lacked information. I had a pagination in the gridview.. Here was my working code.

    Protected Sub Gdvisitor_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles Gdvisitor.RowCreated
        If (e.Row.Cells.Count > 1) Then
            e.Row.Cells(1).Visible = False
        End If
    End Sub
    

    At first it was “….cells.count < 0” and that didn’t work the index was still out of range but when I changed it to 1. It worked. I think the pagination has something to do with it. I’m not sure though… Thank you for all the help

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

Sidebar

Related Questions

I have some code here. I recently added this root_id parameter. The goal of
I have a gridview that uses autogenerated columns, because the user can select the
I have 2 columns meal and serving, and wanted to display it in listview.
I have a WPF 4.0 DataGrid with AutoGenerated columns. I would like to only
I have this in my first activity: private AdapterView.OnItemClickListener _itemClickLis = new OnItemClickListener() {
I am using gridView. I have 4 auto generated columns and 1 generated by
I have a question regarding a problem with L2S, Autogenerated DataContext and the use
Is there a way to have all the POJOs autogenerated that are needed when
In our ASP.NET MVC project we have a Strings.resx file and the accompanying autogenerated
I generate all my columns in a subclassed DataGridView programmatically. However Visual Studio 2008

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.