Home - Forums-.NET - FlyGrid.Net (Windows Forms) - ImageColumn

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

ImageColumn
Link Posted: 22-Jan-2006 19:58
Hi,
do you have the following option:
i want to put an imagelist in the images property of an image column.
in the datasource i want to put an index of an image from this imagelist and the corsponding field in the grid will display this image.

thanks,
Guy
Link Posted: 23-Jan-2006 16:53
Yes, you can use for these purposes ImageColumn or AutoHeightImagecolumn
Link Posted: 23-Jan-2006 20:01
i tried to do so and its not working.

where do i need to put the imagelist?

can you give me an example?
Link Posted: 24-Jan-2006 07:53
Sorry for incorrectness, I meant the GraphicsColumn
In the nearest FlyGrid.Net updates ImageColumn will have more universal functionality and will support fetching image from its ImageList and from Node.Value.

[c#]
private void AddColumn(FlyGrid flyGrid, ImageList images)
{
  flyGrid.BeginInit();
  try
  {
    GraphicsColumn graphicsColumn = new GraphicsColumn("Image");
    graphicsColumn.ImageList = images;
    flyGrid.Columns.Items.Add(graphicsColumn);

    NodeBase[] nodes = new NodeBase[] {
                         new Node(object[]{0}),
                         new Node(object[]{1}),
                         new Node(object[]{2}),
                         };
    flyGrid.Rows.Items.AddRange(nodes);
  }
  finally
  {
    flyGrid.EndInit();
  }
}