471,315 Members | 1,519 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

Excluding records from a bound datagridview control?

Hello all.

I have a DataGridView control which I have populated by binding it to
an ArrayList, which contains about 150 instances of a structure. The
downside, is that I don't want to display all of the records. The
structure contains a field telling whether or not to display a record.
Is there an efficient way to to tell the control not to display
particular records?

The ArrayList is bound to the control by an implementation of
IBindingList.

Any ideas would be most appreciated.
Thanks.
-D

Jan 22 '06 #1
1 1126
Hi Dave,
if you use a BindingSource to wrap your datasource you can use the
BindingSource.Filter property to filter out which rows you do and do not want
to display.

"Dave" wrote:
Hello all.

I have a DataGridView control which I have populated by binding it to
an ArrayList, which contains about 150 instances of a structure. The
downside, is that I don't want to display all of the records. The
structure contains a field telling whether or not to display a record.
Is there an efficient way to to tell the control not to display
particular records?

The ArrayList is bound to the control by an implementation of
IBindingList.

Any ideas would be most appreciated.
Thanks.
-D

Jan 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Job Lot | last post: by
2 posts views Thread by Olav Tollefsen | last post: by
5 posts views Thread by =?Utf-8?B?RWl0YW4=?= | last post: by
reply views Thread by jeastman - Hotmail | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.