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. General Programming
  3. WPF
  4. Cant see columns in listview on designer

Cant see columns in listview on designer

Scheduled Pinned Locked Moved WPF
wpfcsharpcsscom
3 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.
  • H Offline
    H Offline
    Haim Nachum
    wrote on last edited by
    #1

    Hi. I have the following code in a WPF Application : <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <ListView Name="listView1" Margin="11.5,7,10.5,19.5"> <ListView.View> <GridView > <GridViewColumn Header="1"/> <GridViewColumn Header="2"/> </GridView> </ListView.View> </ListView> </Grid> </Window> But in designer i see the listview empty and i dont see the 2 columns. I only see them on runtime.

    A 1 Reply Last reply
    0
    • H Haim Nachum

      Hi. I have the following code in a WPF Application : <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <ListView Name="listView1" Margin="11.5,7,10.5,19.5"> <ListView.View> <GridView > <GridViewColumn Header="1"/> <GridViewColumn Header="2"/> </GridView> </ListView.View> </ListView> </Grid> </Window> But in designer i see the listview empty and i dont see the 2 columns. I only see them on runtime.

      A Offline
      A Offline
      ABitSmart
      wrote on last edited by
      #2

      I copied your code as it is in to a new WPF Project and I had no problems at all i.e. the columns were visible in designer. I use VS2008(SP1).

      H 1 Reply Last reply
      0
      • A ABitSmart

        I copied your code as it is in to a new WPF Project and I had no problems at all i.e. the columns were visible in designer. I use VS2008(SP1).

        H Offline
        H Offline
        Haim Nachum
        wrote on last edited by
        #3

        Ok. It seems that an update to sp1 was required. Thanks.

        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