Tuesday, December 02, 2008

How to add Image in the DatagridView using VB.NET

How to add image or icon in the DatagridView column using vb.net or c#.net

VB.NET

Dim dgImage As New DataGridViewImageColumn
dgImage.Image = Drawing.Image.FromFile("C:\FixedOption.ico")
dgImage.ReadOnly = True
dgImage.ImageLayout = DataGridViewImageCellLayout.Normal
dgDataGridView.Columns.Add(dgImage)

'After This you can bind the data grid with any dataset,if you want
dgDataGridView.DataSource = DataSet

C#.NET

dgDataGridView.Rows.Clear();

DataGridViewImageColumn dgImage = new DataGridViewImageColumn();

dgImage.Image = Drawing.Image.FromFile("C:\\IconLocation\\FixedOption.ico");

dgImage.ReadOnly = true;

dgImage.ImageLayout = DataGridViewImageCellLayout.Normal;

dgDataGridView.Columns.Add(dgImage);

//After This you can bind the data grid with any dataset

dgDataGridView.DataSource = BindDataSet;

43 comments:

Anonymous said...

Good gradually. acheter levitra en france I apologise, but, in my opinion, you commit an error. I can prove it. Write to me in PM.

Anonymous said...

We are delighted that our company Buy Cialis Discount Drugstore is joined of the outwit in the Internet, commonly, http://ipod-playlist.com/viagra.html get Viagra Online specializing on online pharmaceutics Viagra.

Anonymous said...

Online Buy Viagra mexico Buy Viagra mexico
[url=http://www-01.ibm.com/redbooks/community/display/~alternative_to_viagra]Online Buy Viagra pfizer soft Buy Viagra online[/url]
Online Buy Viagra usa Buy Viagra for women http://wiki.sevenhats.org/display/~buy_viagra_online_uk
vertiloapolsas

Anonymous said...

comprar viagra vgdgijcmxe qvbnhffprg [url=http://csalamanca.com]viagra [/url] qmmkvubvuq hpbebxbeqt la viagra heepcezrqk hztakntetk

Anonymous said...

Quel message intГ©ressant http://runfr.com/acheter-cialis achat cialis en pharmacie achat levitra original

Anonymous said...

jsfvzklfec pxniqrslzq [url=http://lacasadicavour.com/trial-packs/ ]cialis compra [/url] mivkiyksfm ewunoxcjzn comprare cialis elbmtgbdey haxaoanidt

Anonymous said...

il me semble, vous n'ГЄtes pas droits http://runfr.com/tag/acheter-cialis achat cialis sur internet cialis generique

Anonymous said...

Thinking about getting a car insurance quote?
[url=http://safe-car.org]Car Insurance[/url]
A growing number of people are dropping their auto insurance to try to save money, according to a recent study by the Insurance Research Council (IRC). If the current rate of unemployment continues, the IRC estimates that the national uninsured rate will climb from 13.8 percent in 2007 to 16.3 percent in 2010. With that many people driving without coverage, it's dangerous to be uninsured. But how much car insurance do you really need?
If you're like many people feeling the pinch, your inclination is to get the bare minimum of insurance coverage required by the law in your state. That's a good place to start, though those minimums may not fully protect you -- or your assets -- if you file a claim. We recommend getting more than the minimum coverage unless you are driving a beater and have no assets to protect.

Visit [url=http://safe-car.org]Safe-car.org[/url]
All you need to know about
[url=http://safe-car.org]Car Insurance[/url]

Anonymous said...

une Charmante phrase cialis http://runfr.com cialis generiques achat cialis france

Anonymous said...

le sujet Incomparable, il m'est trГЁs intГ©ressant :) probleme ejaculation precoce

Anonymous said...

il Arrive... Une telle coГЇncidence accidentelle ejaculation

Anonymous said...

oui, il arrive... acheter cialis http://runfr.com achat cialis original acheter cialis france

Anonymous said...

Je demande pardon qu'est intervenu... Chez moi la situation semblable. Nous examinerons. http://runfr.com/tag/acheter-cialis achat cialis sur internet acheter cialis generique

Anonymous said...

十時です。午後7時30分です。 [url=http://ci2s.org/viagura.htm]バイアグラ 服用[/url] バイアグラ

Anonymous said...

[url=http://www.altmededu.com/]alternative medicine courses in india[/url]
[url=http://www.altmededu.com/]school of alternative medicine[/url]
[url=http://altmedschool.com/]school of alternative medicine[/url]
[url=http://altmededu.com/]alternative medicine certificate[/url]

Anonymous said...

Je vous remercie de l'aide dans cette question. Chez vous le forum remarquable. cialis cialis 20mg

Anonymous said...

http://www.pandorasgates.com/forum/viewtopic.php?f=2&t=53730&p=66441
http://lfpsanjuan.com.ar/foro//viewtopic.php?p=77902
http://www.piratecash.com/forums/viewtopic.php?f=7&t=10399&p=11420

Anonymous said...

Cela non ainsi. [url=http://runfr.com]acheter viagra[/url] http://runfr.com les effets indйsirables de la tention arterielle cyalis viagra

Anonymous said...

Permettez de vous aider ? http://runfr.com/tag/tadalafil acheter cialis en ligne viagra sur le net

Anonymous said...

En esto algo es yo parece esto la idea excelente. Soy conforme con Ud. [url=http://csalamanca.com/tag/sin-receta/ ]comprar viagra es [/url] Bravo, erais visitados por el pensamiento excelente http://csalamanca.com/category/viagra/ viagra sin receta farmacia

Anonymous said...

Bravo, cette phrase remarquable faut tout juste Г  propos [url=http://runfr.com/acheter-cialis]cialis 10mg[/url] http://runfr.com/acheter-cialis comprimй cialis 20mg effet secondaire tadalafil pharmacie en ligne achat cialis

Anonymous said...

used car melbourne fl
used car bozeman
used car kooskia mt
ricart used car factory
car hire online
pimp your car online
custom your car online
custom bluid your car online

Anonymous said...

used car thomson
used car specifications
hotwire car rental
picture of race car
hotwire car rentl
fleas in car
iphone car dock
cars in hawii

Anonymous said...

free car facts vin
winter emergency kit for the car
advantage car hire
car maxford mustangs
lambskin car coat
amman car rental
vigilance for driver in car
three wheel car auto

Anonymous said...

ups sorry delete plz [url=http://duhum.com].[/url]

Anonymous said...

que dans un tel cas il faut faire ? http://runfr.com/acheter-cialis cialis france achat cialis belgique

Anonymous said...

Hi
[URL=http://blog.bakililar.az/Botshark/]Buy Tramadol Online[/URL]

Anonymous said...

Hi, just wondering if anyone can help with a problem I'm having? I'm connected to the internet and it will let me open google but if I try to open another webpage it tells me the page cannot open. I already checked the firewall and everything seems fine, i also scanned for viruses with Avira and Mallware Byte and nothing showed up. If anyone can help it'd be much appreciated thanks! :-) [url=http://gordoarsnaui.com]santoramaa[/url]

Anonymous said...

dating transexuals [url=http://loveepicentre.com/]problems with carbon dating[/url] dating flash game online http://loveepicentre.com/ dating tips

Anonymous said...

Hi, as you may already discovered I am newbie here.
In first steps it's very good if someone supports you, so hope to meet friendly and helpful people here. Let me know if I can help you.
Thanks in advance and good luck! :)

Anonymous said...

sex animal with woman 1985 xxx
galaxy angels dating sims
india sex movi
foto sexy calciatori
local amature sex videos
sex puttana
animal sex xx girl for free
kerala sexy aunties
indian south sex fack video
porn videos sex fameli

Anonymous said...

adults search
adult pic bbs
bleeding pussy sex
black sex free
forever baby adult
sexy grils bums for smacking
all russian sex free
private secure adult media

Anonymous said...

Looking for [url=http://www.pharmashack.com]viagra[/url] ?Acquiesce to Our Dastardly Prices at www.Pharmashack.com, The High-level [b][url=http://www.pharmashack.com]Online Chemist's workshop [/url][/b] To [url=http://www.pharmashack.com]Buy Viagra[/url] Online ! You Can also Underline to Consummate Deals When You [url=http://www.pharmashack.com/en/item/cialis.html]Buy Cialis[/url] and When You You [url=http://www.pharmashack.com/en/item/levitra.html]Buy Levitra[/url] Online. We Also Companions a Unconstrained Generic [url=http://www.pharmashack.com/en/item/phentermine.html]Phentermine[/url] As a services to Your Meals ! We Detain out of order up Shame turn out concerned with [url=http://www.pharmashack.com/en/item/viagra.html]Viagra[/url] and Also [url=http://www.pharmashack.com/en/item/generic_viagra.html]Generic Viagra[/url] !

Anonymous said...

kamagra oral jelly cod online orders sildenafil pill Online Buy Cephalexin Without A Prescription flomax herbal subsitute cheap Augmentin Augmentin online Augmentin p Order Pills Cephalexin Cephalexin without prescription from Canada cheap Diflucan usa buy cheap Lasix with dr. prescription Get Boniva pharmacies without prescription

Anonymous said...

making adobe acrobat trial permanent free
adobe acrobat 8 standard upgrade
ie7 problems with adobe flash player
adobe flash active x plugin
adobe flash player for mobile phone
insert text into adobe acrobat
adobe acrobat writer and free
authorization code for adobe acrobat

Anonymous said...

Microsoft Works 9 adobe
Microsoft Office 2007
Adobe Creative Suite 3 Master
Microsoft Visual C++ 6.0 Standard Edition
adobe photoshop user group Low Price
Microsoft Visual C++ 6.0 Standard Edition
Microsoft Auto Route 2007 FULL DVD adobe premiere
Microsoft Office Pro 2003 SP3 incl Project
Microsoft Office 2007 Enterprise with
Microsoft Student with Encarta Premium 2009 English

Anonymous said...

Adobe After Effects CS4 tutorials
Adobe Fireworks CS4 how to grow
knjiga adobe dreamweaver
Adobe Contribute CS4 adobe photoshop
Microsoft Money 2007 Deluxe free adobe
Adobe Sound Booth CS4 adobe photoshop api
Adobe Creative Suite 4 Master
Adobe In Copy CS4 adobe contribute
Adobe In Design CS4 adobe acrobat

Anonymous said...

Adobe Illustrator CS4 adobe
Discount adobe photoshop software
Adobe Sound Booth CS4 adobe flash
Microsoft Money 2007 Home & Business
Adobe In Design CS4 adobe photoshop
Download adobe photoshop workshop
Microsoft Office Visio 2003 adobe
Adobe Photoshop CS4 Extended
Adobe Captivate 4 adobe flash

Anonymous said...

adobe acrobat for teachers
adober flash player problems
vector adobe illustrator
adobe illustrator burst library
adobe acrobat upgrade matrix
how to test adobe flash player
free download adobe acrobat
adobe after effects edit adobe project not clips

Anonymous said...

http://basweopuv.0fees.net/adobe-dreamweaver-v3.html
http://bolsiwoa.0fees.net/adobe-flash-professional-keygen-crack.html
http://bcyusiw.0fees.net/adobe-creative-suite-cs3-design-premium.html
http://bolsiwoa.0fees.net/adobe-photoshop-music-note-brushes.html
http://bolsiwoa.0fees.net/adobe-version-7-of-flash.html
http://bcyusiw.0fees.net/adobe-flash-presentation.html
http://basweopuv.0fees.net/extract-photos-form-adobe-photoshop-album-starter.html
http://bcyusiw.0fees.net/adobe-creative-suite-4.html
http://bolsiwoa.0fees.net/problems-with-adobe-flash-player.html
http://basweopuv.0fees.net/how-to-smooth-edges-adobe-photoshop.html

Anonymous said...

adobe acrobat reader mac
user instructions for adobe acrobat
free adobe acrobat 8 tutorial
free adobe acrobat tutorial
free adobe acrobat 7 tutorial
adobe acrobat 7 free tutorial
adobe acrobat newest version
adobe acrobat apple download
adobe acrobat reader apple
adobe acrobat professional forms
adobe acrobat professional forms help

Anonymous said...

adobe acrobat professional user group help
adobe acrobat reade3r
adobe acrobat pro mac
adobe acrobat 5 keygen
adobe acrobat reinstall everytime i right click
adobe acrobat diacritical
adobe acrobat schwa
create custom dictionaries for adobe acrobat 7
compare adobe acrobat 5 8 versions
adobe acrobat 8 professional
adobe acrobat professional 6 upgrade

Anonymous said...

make digital scrapbook pages with adobe photoshop
free download of adobe photoshop cs3
adobe photoshop image setting
adobe photoshop prepress
adobe photoshop film output
how to download actions in adobe photoshop
adobe photoshop free
adobe photoshop download
free downloadable adobe photoshop
try adobe photoshop