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

checkbox to delete a row

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Goncalo
Top achievements
Rank 1
Goncalo asked on 09 Sep 2010, 12:56 PM
Hello everybody,
i'm working with a webservice. The classes can't be modified because i must send the same object to the webservice.

I have a gridview and when you click in a row this row will become editable (this is ok).
Now i would like to have a checkbox for each row and when I click delete i would like to delete the checked ones. Normally I add a boolean in the class and then it's easy but without a boolean I don't know how to do. Some helps?

Goncalo Margalho

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 10 Sep 2010, 03:35 PM
Hi Goncalo,

When using a GridViewCheckBoxColumn, you need a boolean property to bind to. Thus it would be much easier and more appropriate to work directly with the data not with the state of a visual element. 
However, you may try to use the GridViewSelectColumn, walk through the selected rows and delete them on the button click. You may find more information about that type of column in our online documentation.
 

Greetings,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Goncalo
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or