Selection of rows from DataGrid or ListView

In my application I need to select n rows from the datagrid(having 100 rows) by using checkboxes for selection. Only the selected rows should appear & remaining rows should not be displayed. The selected rows will be used for further processing. I tried using the datagrid but not able to implement checkboxes for selection. Alternative ways to achieve this would also help. 
0 answers