Home Forums WPF controls Xceed DataGrid for WPF Single Column Selection

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22343 |

    Hi,

    when i click a single Column on header, that particular column Selected and a Border with Orange color applied only the selected column. can it possible….

    Thanks

    Imported from legacy forums. Posted by rajendernag (had 1829 views)

    Xceed Support
    Member
    Post count: 5658

    You can achieve this by placing a Trigger in the DataCell style.

    The tricky part is that there is no “IsCurrent” property on the Column class.

    To go around this, your trigger can use a custom built converter, which takes the Cell as the value to be converted and determines of the Cell’s ParentColumn property is equal to the DataGridControl’s CurrentColumn property (the converter can then return a true/false value).

    Imported from legacy forums. Posted by Marcus [Xceed] (had 3159 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.