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. Hidding Columns Which is Filled through Datatable

Hidding Columns Which is Filled through Datatable

Scheduled Pinned Locked Moved ASP.NET
csstutorial
3 Posts 3 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.
  • E Offline
    E Offline
    Evsdeepak
    wrote on last edited by
    #1

    Hi All, Please Anyone having the Knowledge how to hide the Grid's Column when it filled by a Datatable.Means my datatable contains 4 columns and i bind the datagrid with the column.but in the datagrid i want only 2 columns from that datatable.Please Suggest me how to do this..... Thanks Deepak.

    Q I 2 Replies Last reply
    0
    • E Evsdeepak

      Hi All, Please Anyone having the Knowledge how to hide the Grid's Column when it filled by a Datatable.Means my datatable contains 4 columns and i bind the datagrid with the column.but in the datagrid i want only 2 columns from that datatable.Please Suggest me how to do this..... Thanks Deepak.

      Q Offline
      Q Offline
      Qaiser Mehmood Mughal
      wrote on last edited by
      #2

      There are four types of columns in datagrid and they all have visible property assign it values as following is given, "BoundColumn Visible=False" or if you want to assign value through design end then right click on datagrid-->select property builder and then select columns tag, under selected colomns list select the desired column to hide and check out its visible property. Qaisar Mehmood Mughal ............................................................................... May Allah gave u success in all fields of life. (Aameen) ............................................................................... Software Engineer ISF - Islamabad Software Factory 3rd Floor, Software Technology Park Constitution Avenue, Islamabad 44000, Pakistan www.isf.com.pk qaisar@isf.com.pk , qmmughal@gmail.com Phone: +92 (51) 2825387 : 0321-5226623 -- modified at 0:50 Wednesday 25th January, 2006

      1 Reply Last reply
      0
      • E Evsdeepak

        Hi All, Please Anyone having the Knowledge how to hide the Grid's Column when it filled by a Datatable.Means my datatable contains 4 columns and i bind the datagrid with the column.but in the datagrid i want only 2 columns from that datatable.Please Suggest me how to do this..... Thanks Deepak.

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        You should be link to a data view also DataGrid.DataSource = DataTable.DefaultDataView; 1 line of code equals many bugs. So don't write any!!

        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