My DataBase field name "PerID" and "Imagepath"
In DataGridview, I want to show "PerID" and Image (Not file path)
You can add a Column to your Datagridview and then select a DatagridviewImageColumn.
In the properties go to Appearance and add an Image
Thank you for reply,
If you can please explain me, how to do this with small example.
(Please don't misunderstand me I am just start learning VB.Net)
Dim ds As DataSet = New DataSet Dim adapter As New OleDb.OleDbDataAdapter Dim sql As String = "Select * from E_Info" adapter.SelectCommand = New OleDb.OleDbCommand(sql, Con) adapter.Fill(ds) RTGrid.DataSource = ds.Tables(0)
These are the code, what I used, It shows ImagePath in Column, But don't want to show file path, I want to show only Image. Please show me,
Thanks for reply, from that article I learned lot of thing, but I want to another thing, If you can please explain how to do this,
I code like this to load image into datagridview,
Dim NewImage As New DataGridViewImageColumn() **Dim bmp As Image = Image.FromFile("C:\Users\Public\Pictures\Sample Pictures\Tulips.jpg")** NewImage.Image = bmp DataGridView1.Columns.Add(NewImage) NewImage.HeaderText = "Image" DataGridView1.DataSource = ds.Tables(0) NewImage.ImageLayout = DataGridViewImageCellLayout.Zoom
from this show all the data in my Database, with same picture which I speified(I write common path for all). I want to change image path with column(3) text.
I put different Image file paths in Column(3)
Thank you, My English is poor.
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Hi. Im using vb 2010. I want to dynamically add textboxes to my form by clicking on a button. I've google searched and so far this code worked:
Private Sub btn_addline_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_addline.Click Dim txtB1 As New TextBox Dim i For i = ...