Programmatically add a row to a databound datagridview

benjamin

Member
Joined
Nov 5, 2008
Messages
22
Location
Cook Islands
Programming Experience
5-10
Hi,

I can't seem to find a solution for this problem anywhere - i know that for bound datagridview to add a new row you're meant to add to the underlying datatable.

I've started using this nice datagridviewfilter class i found which applies filters to the underlying table.

Problem is i want to manually add a row to this already filtered view (and i don't want the table data to be changed as when the header filter is applied it re-filters the original table (which is what i want)).

Just wondering if there is a work around for this sort of problem that someone knows. Such that i can add a new row temporarily (purely for display) to the grid contents and then revert back to the original data whenever an action is taken (and without a requery to a slow database).

Any help muchly appreciated.
 
Back
Top