Hi,
I try the new technic of BindingSource and some color does not show any more in the grid
If I try with my older binding technic with the same DataSet everything is Ok
Example of my new and older Binding technic
m_grid.DataSource = m_dsPlanification
m_dsPlanification.AcceptChanges()
New Binding Technic
Me.m_grid.DataSource = bs
Me.m_grid.Refresh()
We would like to keep the new Binding technic because the performance are a lot faster :)
Do you ever hear about this problem?
Do you have any idea?
Thanks in advance and have a nice day!
Why do you call m_grid.Refresh? If you want to reload data you can call Grid.Rows.Refresh(RefreshRow.ReloadData), but I think you don't need that because when the form will be shown the grid will refresh the data.
grid.Refresh is not related to data loading. It's a method that any control has and it's related to painting.
Ok for the Refresh I can delete that line of code but it does not answer to my question
Why some color of certain Cell are white and are supposed to be Red?
If I use the normal binding technic all the color are there like it suppose to
If I use the new Binding technic all the background color of the Red Cell and Blue Cell appear white
It is the same dataset for both binding technic. :)
The data source of the grid doesn't make any difference to the appearances in the grid.
How are you applying the colors ro the rows or cells?