We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Check box to select row?

Is there away to add another column which is of type checkbox and if the checkbox is checked then the row is selected and if its unchecked then the row is unselected?


1 Reply

SM Saravanan M Syncfusion Team September 4, 2013 01:08 PM UTC

Hi Gareth,

We have analyzed your query you can add the column which is the type of checkbox 

by setting Celltype as CheckBox. You can refer the below code snippet.

Codesnippet[XAML]:

 <syncfusion:GridDataVisibleColumn HeaderText="State" DataType="Boolean" MappingName="IsSelected" >

                 

 <syncfusion:GridDataVisibleColumn.ColumnStyle>

 <syncfusion:GridDataColumnStyle CellType="CheckBox" HorizontalAlignment="Center"               IsThreeState="False"/>

 </syncfusion:GridDataVisibleColumn.ColumnStyle>

 </syncfusion:GridDataVisibleColumn>              

 

 

We have prepared a sample based on this ,Please find the attached sample below,

Please let us know if you have any query,

Regards,

Saravanan.M



GridDataControlSample_Checkbox_F110648_53e04bc0.zip

Loader.
Live Chat Icon For mobile
Up arrow icon