Windows Develop Bookmark and Share   
 index > Windows Forms General > stretching Images in a DataGridView
 

stretching Images in a DataGridView

Hi there:

I have a DataGridView loaded with an Entity table. On the other side,in Sql Server 2005, the corresponding table has a varbinary(MAX) column, which contains images.

I want to show fixed size streched images in the column, to give the DataGridView a proper appearance.

How do I do that?

Thank in advance.

Rafael


Believe you can do it, and you will!!
  • Moved byeryangMSFTMonday, September 28, 2009 8:28 AM (From:.NET Base Class Library)
  •  
rafsots  Saturday, September 26, 2009 2:36 AM
Set"ImageLayout" propertyof your DataGridViewImageColumn as "Stretch"
Gaurav Khanna
  • Marked As Answer byrafsots Monday, September 28, 2009 12:14 PM
  •  
Khanna Gaurav  Saturday, September 26, 2009 8:08 AM
Set"ImageLayout" propertyof your DataGridViewImageColumn as "Stretch"
Gaurav Khanna
  • Marked As Answer byrafsots Monday, September 28, 2009 12:14 PM
  •  
Khanna Gaurav  Saturday, September 26, 2009 8:08 AM

You can use google to search for other answers

Custom Search

More Threads

• Can't change resolution properties on an Image
• MDI child controlbox (minimize,maximize,close)
• Image not showing in Splash Form
• scrollable menuitems are not select by menu
• How to evaluate the user computer network enviroment?
• How to use Drag and Drop? Windows Explorer -> My App
• Add Control+Collection to a form?
• scriptcontrol
• javascript events with .NET Framework 1.1 and SP1
• System ShutDown...