Jump to content
  • Advertisement
Sign in to follow this  
faculaganymede

[.net] C# DataGridView and window size

This topic is 4403 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

C# gurus, I have my DataGridView docked to the App's window container. Data are added to the DataGridView dynamically during App run time. I don't want DataGridView to show empty rows (i.e. rows that do not yet have data writtened to) and want all rows with data to be showing. Is it possible to make the App window automatically change size as rows of data are added to DataGridView? If yes, using which method? Or, may be there's a better way (basically, I just need to display the data in a table format and have all the data showing)? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Just my opinion, but I'd delete an app that had a window that constantly resized itself because data was being added to a grid. You could end up with a window that's bigger than the user's resolution can show. That's what scrollbars are for. Size the window to allow a decent amount of rows to show and let the grid scroll when it needs to.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!