Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Datagrid FullRowSelect
5 replies. Latest Post by yifung on July 13, 2009.
(0)
lnalbandyan
Member
7 points
13 Posts
07-10-2009 4:16 PM |
I need a full row select functionality in Datagrid control Is there a known way to accomplish that ? Thanks.
Jac_P
Participant
1044 points
189 Posts
07-13-2009 4:12 AM |
Checkout this thread
http://silverlight.net/forums/t/53154.aspx
Thanks
Jac
07-13-2009 9:07 AM |
Jac, Thnks for replay but I'm not looking for selecting a row, I am looking for full row select functionality ex. when you click on a cell in a row it selects the cell I want it to select the full row
yifung
Contributor
3313 points
540 Posts
07-13-2009 1:19 PM |
The DataGrid actually does select the entire row. The current cell has a focus visual by default because that is the cell that will go into edit mode if you press F2. If you don't want to see this focus visual, you can set a CellStyle on the DataGrid to one that is basically the original CellStyle but with the FocusVisual removed.
07-13-2009 1:35 PM |
The point is I have DataGridCheckBoxColumn in datagrid and every time I need to check the checkbox I have to click in chekcbox to select the cell and enter into edite mode and with second click to select it. I want it to be selected with single click. I found a temprorary solution for this problem by using single DataGridTemplateColumn and puting all the necessary controls into single container. thank you for responses.
07-13-2009 1:42 PM |
Ah ok, yes, the DataGrid editing is a little restrictive at the moment. You either have to click the current cell or press F2 for the current cell for the DataGrid to go into editing mode. Ideally there would be other triggers available for putting the control into editing. Yes, you can have a CheckBox or any control outside of the DataGrid's normal editing to do this.