This is a migrated thread and some comments may be shown as answers.

How can I hide the selectied row ?

4 Answers 19 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 25 Oct 2011, 09:17 PM
I am using the grid as a read only display of data.

I would like to hide the selection row (highlighted row) in the grid.

I tried CanSelect = false but the grid still displays a highlighted row...

Thanks,

Michel

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 26 Oct 2011, 07:31 AM
Hello Michel,

 

Would you please try to set the CanUserSelect property of RadGridView to False and let me know whether the issue still persists? 


Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michel
Top achievements
Rank 1
answered on 26 Oct 2011, 05:56 PM
Thanks,

Sorry I misspelled it.  I did try setting CanUserSelect = false...

0
Vanya Pavlova
Telerik team
answered on 26 Oct 2011, 06:21 PM
Hello Michel,

 

Thank you for getting back to us! Since you have set the CanUserSelect property to False you should not be able to select in your RadGridView. However if you set the IsSynchronizedWithCurrent item to True the first row will be selected even if you set the CanUserSelect property to False. Can you verify that the IsSynchronizedWithCurrentItem is not set to True within RadGridView's definiton and how the grid is bound to in your case? If the suggestion above do not work for you feel free to open a new support ticket where you may attach a runnable project which we may use for local testing.  



 I look forward to hearing from you! 


Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Michel
Top achievements
Rank 1
answered on 26 Oct 2011, 07:59 PM
Thanks !

I Did set "CanUserSelect = false" and "IsSynchronizedWithCurrentItem = false" and no row is selected when the grid is displayed.

I don't mind so much the "live" highlighting of the row as we move our cursor over the grid... But I can still "select" a row and a highlighted is then displayed.

This is the grid:

<k:GridView ItemsSource="{Binding DetailList}" ShowColumnHeaders="False" CanUserSelect="False" IsSynchronizedWithCurrentItem="False" >
    <k:GridView.Columns>
        <k:GridViewColumn DataMemberBinding="{Binding PropertyName}" />
        <k:GridViewColumn DataMemberBinding="{Binding PropertyValue}" />
    </k:GridView.Columns>
</k:GridView>

Thanks again,

Michel
Tags
GridView
Asked by
Michel
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Michel
Top achievements
Rank 1
Share this question
or