• Adding an Unbound Image Column [Janus GridEX WinForms Control v3.5 for .NET]

    Follow these steps to add an Image column to a table in a GridEX control:



    1 - Add an image list to Form1.



    2 - Add two images to imageList1 product.bmp and header.bmp



    3 - In the ExternalImageList property of the GridEX control, select imageList1.



    4 - Go to GridEX Designer dialog and select Columns collection of the RootTable object.



    5 - In the Columns panel, Click Add button to add a new column.



    Select "Unbound Column" option and enter Icon in the Key text box.

    In the next step, Clear the caption of the column and select Image as the ColumnType for the new column.

    Click OK



    9 - In the property grid, set the ImageKey property equal to "product.bmp". Doing this, you are instructing the column to display that image in all the cells of the column.



    10 - To display an image in the header of the column, use the HeaderImageKey property. In this tutorial, we used header.bmp.



    11 - Use the MoveUp button in the toolbar to move this column up to be the first column in the control.



    12 - Change the Width of the Column to 20 (pixels) and set the AllowSize property equal to false.



    13 - Since an image can not be sorted nor grouped, set the AllowGroup and AllowSort properties equal to false.



    14 - Save the form and press F5 to run the project.

    Source Of Information : Janus v3.5 Help Files for VS 2008


Leave a Reply