HighTechTalks DotNet Forums  

Autosize Row in DataGrid

VB.net Controls microsoft.public.dotnet.languages.vb.controls


Discuss Autosize Row in DataGrid in the VB.net Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Robert Bevington
 
Posts: n/a

Default Autosize Row in DataGrid - 02-03-2008 , 02:49 PM






Hi Everyone,

I'm filling a datagrid and want the row height to automatically resize
according to the content. This works fine if I use:
DataGridViewAutoSizeRowsMode.ALLCELLS

However if the datagrid has a large number of rows, it takes ages to
autosize. So I switched to .DISPLAYEDCELLS. Works fine until the user
scrolls the grid. To catch this, I added the same line to the DataGrid
Scroll event. The event fires, but the new rows are not resized.

Does anyone know how to solve this one?

Best regards,

Robert Bevington




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.