none
Working with Datatable and dataGridView RRS feed

  • Question

  • 1. From Datatable to dataGridView using filter.
    I have Datatable, how to insert data from this Datatable to dataGridView, where column value must be equivalent to specific value.

    Like SQL-command:
    select * from testTable
    where name = 'test'


    2. Changing values in dataGridView
    I want to select some rows in dataGridView and by clicking a button, change value in columns of selected rows. And then changes from dataGridView must apply to Datatable (dataGridView source).

    3. Count From Datatable using filter.

    How can I count rows from Datatable, where column value must be equivalent to specific value.

    Like SQL-command:
    SELECT COUNT(id)
    FROM Ticket
    Where name = 'test'
    Saturday, March 8, 2014 10:52 PM

Answers

All replies