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. Datagrid with Selected cell

Datagrid with Selected cell

Scheduled Pinned Locked Moved WPF
question
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.
  • S Offline
    S Offline
    Saksida Bojan
    wrote on last edited by
    #1

    I have managed to do a full row selection, however i can still see a black rectangle on a cell that i click on. How can i make it so that it will not show it? Thanks in advance.

    A 1 Reply Last reply
    0
    • S Saksida Bojan

      I have managed to do a full row selection, however i can still see a black rectangle on a cell that i click on. How can i make it so that it will not show it? Thanks in advance.

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      This[^] thread most probably answers your question.

      The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.

      S 1 Reply Last reply
      0
      • A Abhinav S

        This[^] thread most probably answers your question.

        The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.

        S Offline
        S Offline
        Saksida Bojan
        wrote on last edited by
        #3

        I am unable to achive this. One example uses DataGridFrozenGrid that is only avaible in Silverlight others when selected, content disappears. Edit: Partualy figure it out. All those wanted me to use VisualManager while i didn't know what it is. Also i wanted to see the default style and template to modify but was out of luck because template browser didn't saw DataGridCell.

        <DataGrid.CellStyle>
        <Style TargetType="{x:Type DataGridCell}">
        <Style.Triggers>
        <Trigger Property="IsSelected" Value="True">
        <Setter Property="BorderThickness" Value="0"/>
        </Trigger>
        </Style.Triggers>
        <Setter Property="Focusable" Value="False"/>
        </Style>
        </DataGrid.CellStyle>

        The only thing that remaind is that i override key events, so that it handles up and down keys.

        modified on Sunday, September 26, 2010 4:15 PM

        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