I'm not an expert, but my understanding is that you want to pass the entire data set to the grid control at once.
If I understand how the Data Reader works, it needs to be hit again and again, dispensing one record at a time until it has cycled through the data. This won't work with a grid control. (I'm tying to find out more about the Data Reader myself today).
Try creating a dataset instead and binding that to the grid, I think you'll have better luck.
its prolly a waste of time but check out planetsourcecode.com or other sites.....maybe someone created a control that inherits the datagrid with the functionality you're requesting. I saw an article on databinding a listview but it wasn't really straight forward.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.