|
-
Feb 5th, 2009, 08:56 AM
#1
Thread Starter
Frenzied Member
[Resolved] Silverlight 2: Disable datagrid row- and cellselection
Hi everyone,
First of all, I'd like to apologize if this isn't the correct forum for Silverlight posts, but I couldn't seem to find the right one.
I have a DataGrid with a set af TemplateColumns, and what I basically want to do is create "links" inside each of these. Now this is pretty easy to achieve, but my problem is that the DataGrid selects a row, and a cell when the user clicks them - which is not the functionality I want.
One might argue that the DataGrid isn't the control I should be using, however, I do need the sorting and columnresizing features etc. so I don't really know of a viable alternative.
I've tried hacking my way out of it by setting the SelectedItem property to Null on the SelectionChanged event. This works for the row selection, however cells still get selected.
Is there any way to disable cellselection, without having to use the VSM and setting a style for the Row itself when a cell is selected(Setting the border opacity to 0) - so far this is the only solution I've seen, and I don't care much for it...
Thanks in advance.
Last edited by vbNeo; Feb 6th, 2009 at 02:38 AM.
Reason: Post resolved
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|