Skip to main content

Microsoft Silverlight

Answered Question Datagrid FullRowSelectRSS Feed

(0)

lnalbandyan
lnalbandyan

Member

Member

7 points

13 Posts

Datagrid FullRowSelect

I need a full row select functionality in Datagrid control Is there a known way to accomplish that ? Thanks.

Jac_P
Jac_P

Participant

Participant

1044 points

189 Posts

Re: Datagrid FullRowSelect

Checkout this thread

http://silverlight.net/forums/t/53154.aspx

Thanks

Jac

Thanks
Jac

lnalbandyan
lnalbandyan

Member

Member

7 points

13 Posts

Re: Re: Datagrid FullRowSelect

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
yifung

Contributor

Contributor

3313 points

540 Posts

Microsoft

Re: Re: Datagrid FullRowSelect

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.

Yifung Lin [MSFT]

lnalbandyan
lnalbandyan

Member

Member

7 points

13 Posts

Re: Re: Re: Datagrid FullRowSelect

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.

yifung
yifung

Contributor

Contributor

3313 points

540 Posts

Microsoft
Answered Question

Re: Re: Re: Datagrid FullRowSelect

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.

Yifung Lin [MSFT]
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities