|
-
Jan 16th, 2006, 03:51 AM
#1
Thread Starter
Lively Member
Subclassing MSHFlexGrid control to show alternate colors
Hi,
Have anyone tried subclassing MSHFlexGrid control. I want to subclass it to show alternate backcolor in rows. I can do it by looping through rows but it is creating problem when there are large number of rows.
I also want to show row number in first column of the grid by deafult when row gets actually added/ created.
~Sanjivani
-
Jan 16th, 2006, 04:44 AM
#2
Re: Subclassing MSHFlexGrid control to show alternate colors
What sort of problem do you encounter when having large number of rows?
-
Jan 16th, 2006, 04:45 AM
#3
Re: Subclassing MSHFlexGrid control to show alternate colors
 Originally Posted by sanjivani
Hi,
... I can do it by looping through rows but it is creating problem when there are large number of rows.
~Sanjivani
What kind of problems? I'm doing that with 15000 rows. You just have to paint 1 time when its populated, after that, just the last selected row must be repainted.
-
Jan 16th, 2006, 07:32 AM
#4
Thread Starter
Lively Member
Re: Subclassing MSHFlexGrid control to show alternate colors
It is too slow for large number of rows. It is visible to user when alternate coloring of grid goes on.
~Sanjivani
-
Jan 16th, 2006, 07:34 AM
#5
Re: Subclassing MSHFlexGrid control to show alternate colors
 Originally Posted by sanjivani
It is too slow for large number of rows. It is visible to user when alternate coloring of grid goes on.
~Sanjivani
Could you post the code you are using?
-
Jan 16th, 2006, 11:22 AM
#6
Re: Subclassing MSHFlexGrid control to show alternate colors
It is too slow for large number of rows. It is visible to user when alternate coloring of grid goes on.
Set the Redraw property to False before the "alternate coloring" code is executed. Set it back to True when done. You should see a significant performance gain.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|