Hi,
I have a strange problem when using a DataGrid, but first let me explain a little the situation. I've created a strong typed collection (inherited from CollectionBase). My collection contains instances of data-objects that retreive on-demand data from a database.
So far so good. Now I've a Windows.Form with a DataGrid on it. I fill up my Collection with some objects. Then I bind my Collection to the DataGrid (ex. grd.DataSource = myColl). And now my problems occures : some cell values of some columns are not displayed... I would expect that I've made an error but the strange thing is that when I minimize my Form, and restore it, all the values are displayed correctly. Same if I move another form in front of my DataGrid (and then move the form away), the values become visible.
I think I may conclude that my code contains no errors that return empty values, so I tried some more... I've put a button on my form that executes the following code : grd.Refresh '(grd is my DataGrid). When I click this button all values are magically displayed...
Can anybody give me some hints or a solution?? I'm thinking of calling the grd.Refresh after scrolling, but I can't find such an event.
Many thanx,
Jan
I have a strange problem when using a DataGrid, but first let me explain a little the situation. I've created a strong typed collection (inherited from CollectionBase). My collection contains instances of data-objects that retreive on-demand data from a database.
So far so good. Now I've a Windows.Form with a DataGrid on it. I fill up my Collection with some objects. Then I bind my Collection to the DataGrid (ex. grd.DataSource = myColl). And now my problems occures : some cell values of some columns are not displayed... I would expect that I've made an error but the strange thing is that when I minimize my Form, and restore it, all the values are displayed correctly. Same if I move another form in front of my DataGrid (and then move the form away), the values become visible.
I think I may conclude that my code contains no errors that return empty values, so I tried some more... I've put a button on my form that executes the following code : grd.Refresh '(grd is my DataGrid). When I click this button all values are magically displayed...
Can anybody give me some hints or a solution?? I'm thinking of calling the grd.Refresh after scrolling, but I can't find such an event.
Many thanx,
Jan