----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: CSharpMadhu Message 1 in Discussion Hi, I have an application with a datagrid which displays and updates many rows at a time. The datagrid has a progress bar, which keeps changing. Also new rows can get added to the datagrid. Needless to say, this was causing noticible flicker in the application. I overrode the WndProc method of the datagrid, suppress the WM_ERASEBKGND message, and paint only those rows that were added or updated, instead of painting the whole thing. The flicker reduces to a certain extent as long as there are few rows in the grid. As the number of rows increase, flickering starts. Also as and when the row content gets updated the scroll bar moves to the top. I tried this.ScrollToRow(this.CurrentRowIndex); , to maintain the scroll bar position. This works but creates more flickering. Flickering seems to be more evident specially when a row is selected and another row is getting updated. My questions are: 1. How to overcome the flickering problem when a row is selected in the datagrid and existing/new rows are updated/added? (I have mentioned the workaround I am currently doing. Let me know if there is anything else I should try) 2. Is it possible to retain the scroll bar position in the datagrid even when there are no currently selected rows ? 3. Does the windows datagrid has any limitations when it comes to displaying/updating hundreds of rows at a time? and How does Infragistics NetAdvantage scale upto ? Thanks. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
