Windows Develop Bookmark and Share   
 index > Windows Forms General > Add tab controls dynamically to the gridview/tabel
 

Add tab controls dynamically to the gridview/tabel

Hi All


I am doing the application to generate the thumbnails for number of sites. I hav finished the code to this. But i want the code to add/bind tab controls to the grid view/tabel to show the status of (thumbnail generation) in Progress bar dynamically. Here i have to generate the thumbnails at a time means i have to impliment multithreading concept.

i think u nderstood my query, please give reply assoon as possible.

Thanks in advance.
Sahasra  Monday, April 21, 2008 2:00 PM

Hi,

I am afraid the DataGridView control doesn't supportdisplayingProgressBar controls in its DataGridViewCells as normal TextBox or ComboBox controls. You can host a UserControl in the DataGridView whereas the UserControl contains a ProgressBar control inside. However, the UserControl is only displayed when a DataGridViewCell is in its edit mode. These UserControls are not always displayed and there is only one UserControl displayed in the DataGridView each time.

You may get some help from this article: How to: Host Controls in Windows Forms DataGridView Cells

Another option is to override the DataGridView.Paint method to do the drawing job by yourself.

Talk about progress report and multithreading concept. You may be interested in reading at this document:

BackgroundWorker Component Overview

Regards,

Jacob

Jacob Sui - MSFT  Thursday, April 24, 2008 7:37 AM

Hi,

I am afraid the DataGridView control doesn't supportdisplayingProgressBar controls in its DataGridViewCells as normal TextBox or ComboBox controls. You can host a UserControl in the DataGridView whereas the UserControl contains a ProgressBar control inside. However, the UserControl is only displayed when a DataGridViewCell is in its edit mode. These UserControls are not always displayed and there is only one UserControl displayed in the DataGridView each time.

You may get some help from this article: How to: Host Controls in Windows Forms DataGridView Cells

Another option is to override the DataGridView.Paint method to do the drawing job by yourself.

Talk about progress report and multithreading concept. You may be interested in reading at this document:

BackgroundWorker Component Overview

Regards,

Jacob

Jacob Sui - MSFT  Thursday, April 24, 2008 7:37 AM

You can use google to search for other answers

Custom Search

More Threads

• How To force all MDI parent and child forms to close on MDIParent Exit or MDIParent Close
• MDI child window default size
• go to last line in richTextBox
• How to create a metafile but not in the disk ?
• On-Screen keyboard and numeric keypad
• drag&drop doesn't work at first try
• Membership and Personalisation in Windows Forms
• Creating Drag and Drop Controls in .Net (C# Winforms)
• right-click event
• TextBoxBase.Lines - can you set them?