DataGridView HELP

M

mattioli.mirko

Hello,I'm a problem.
I inizialize an object BindingSource with :
myBindingSource.DataSource = myDatatable;
and myDataGridView.DataSource = myBindingSource.
but I have a problem :
when I filter BindingSource ( code : myBindingSource.Filter =
"FIELD=0")
myDataGridView show many error ,
For example the rows in myBindingSource is 10 ,
when I click button wich filter ( the rows = 5 , after the filter) ,
the form show many error : "DataGridView : Nothing value at rowIndex 6"
and 7 , 8 ,9 ....
Exist many property of DataGridView , or what is the solution ???
Thanks all people ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top