Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Help me Please Friends

Help me Please Friends

Scheduled Pinned Locked Moved ASP.NET
sysadmindockerhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zeeshan Ahmed Memon
    wrote on last edited by
    #1

    Friends, I want to hide the item of last row named(Down) inside my gridview. It is a linkbutton. I have already done how to hide first row but I don't understand how can I find the last row or total rows inside the gridview. To hide the first row I am using following method < asp: linkbutton ID="lblUp" runat="serveR" Font-Underline="true" ForeColor="blue" Text="Up" Visible="<%# IIf(CType(Container, GridViewRow).RowIndex = 0, false, true) %>" CommandName="MoveUp" CommandArgument="<%# Container.DataItemIndex %>" > Please note that I am using this linkbutton in Item Template. Please help me in this regard.

    C 1 Reply Last reply
    0
    • Z Zeeshan Ahmed Memon

      Friends, I want to hide the item of last row named(Down) inside my gridview. It is a linkbutton. I have already done how to hide first row but I don't understand how can I find the last row or total rows inside the gridview. To hide the first row I am using following method < asp: linkbutton ID="lblUp" runat="serveR" Font-Underline="true" ForeColor="blue" Text="Up" Visible="<%# IIf(CType(Container, GridViewRow).RowIndex = 0, false, true) %>" CommandName="MoveUp" CommandArgument="<%# Container.DataItemIndex %>" > Please note that I am using this linkbutton in Item Template. Please help me in this regard.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Please 1 - don't double post 2 - use a header that makes sense You will need to store the number of rows in your data source, or the size of a page, then you can write similar code to work based on that data. Without the row count, you're kind of hosed.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups