How to select the rows only whose checkbox are checked

  • 12 years ago

     I have a datagrid view. I have one checkbox column and the another data column. I want to select the only those rows whose checkboxes are checked. How can I do this. Any help will be appriciated.

  • 12 years ago

     You can use DataTable or DataSet behind it, where you recieve rows with RowFilter, where syntax can be "[customerId]=1 And [enabledVIPcard]" ...

  • 12 years ago


    I have an unbound database.  The user can select the database of his choice which is on the format given. There is one checkbox colum along with the other columns. When the check box is checked, I want the rows selected whose chekboxes are checked.

  • 12 years ago

     something like filter for the grid?

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup