Regarding inserting images in datagrid column

Hi

I am using datagrid( .net 1.1) in .net 2.0. I am binding the datasource to the datagrid.

I have one column which is state (varchar) i want to insert images in that column.

Pls tell the above is possible if not pls tell the alternative as i have to take image column.

I am not getting how to set column or cell type as image.

Any body

ASAP pls

Thanks & Regards

Bhargavi




Answer this question

Regarding inserting images in datagrid column

  • MightyDubCats

    Which version of Visual Studio you are working with


  • John Zolezzi

    hi I am using in windows grid not asp.net grid



  • Aeos

    Make one column as the Template Column and Add a Picture Box control to it and bind it to the pciture link,


  • dsi

    In the WinForms 2.0 DataGridView Control, there is a option to add a Image Column.

    Procedure
    click smart tags -> Add Columns -> Click Add -> Select Type (DataGridViewImageColumn)


  • stridulence

    For DataGrid 1.0/1.1 , this is a good article to explain about adding template column, in the same way you can add the picture column with data bind to it.

    http://www.codeproject.com/aspnet/datagridcheckbox.asp

  • Paige Ake

    Thanks for ur Replies .

    But all are telling abt aps.net grid i am working on windows application and .net 2.0 version.



  • John Stallo MSFT

    Ali Raza Shaikh wrote:
    For DataGrid 1.0/1.1 , this is a good article to explain about adding template column, in the same way you can add the picture column with data bind to it.

    http://www.codeproject.com/aspnet/datagridcheckbox.asp


    Thanks for your reply Ali Raza Shaikh, but that article is about the DataGrid control for ASP.NET.

    Here is a great and simple article about how to display an image in the winforms DataGrid control for .NET 1.x and will also work for the .NET 2.0 version: Images in a Data Grid.


  • Mr. Hanky

    Thanks for ur reply

    But i am using datagrid not datagrid view pls tell regarding datagrid

    Thanks & Regards

    Bhargavi



  • Regarding inserting images in datagrid column