Filtering in GDBG

Hello.
I'm using Essential Studio 4.3.
Trying to filtering GDBG as shown in the help:
DataView dv = ((DataTable)this.gridDataBoundGrid1.DataSource).DefaultView;
dv.RowFilter = "FirstName LIKE 's*'";

But I'm always get InvalidCastException in a first row, with "System.Windows.Forms.BindingSource" and "System.Data.DataTable".
What I'm doing wrong?



1 Reply

RB Ragamathulla B Syncfusion Team July 6, 2011 12:52 PM UTC

Hi Anton,

Thank you for your interest in Syncfusion products.

Regret for the inconvenience. I have created a simple sample to reproduce the issue. But I am afraid I was not able to see the issue of InvalidCastException . It is hard to trace why this issue is arising without seeing the sample. We have searched our support database for any such similar issues, and found no similar issues.

Refer the sample from below link:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=ForumnGDBG-830380598.zip

Is there any possible way for you to provide us with a sample that shows this issue? or reproduce the issue in above sample. It will be easier for us to have a closer look into the problem and to resolve it.

Thanks for providing additional information any.

Regards,
Ragamathullah B



Loader.
Up arrow icon