Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Java
public final class gridFieldDemoScreen extends MainScreen
{
	LabelField one, two, three, four, five, six;
	public gridFieldDemoScreen()
    {
        setTitle("gridFieldDemo");   
        GridFieldManager grid = new GridFieldManager(2, 3, 0);
        one = new LabelField("ONE");
        grid.insert(one, 0);
        two = new LabelField("TWO");
        grid.insert(two , 1);
        three = new LabelField("THREE");
        grid.insert(three, 2);
        four = new LabelField("FOUR");
        grid.insert(four, 3);
        five = new LabelField("FIVE");
        grid.insert(five, 4);
        six = new LabelField("SIX");
        grid.insert(six, 5);
        grid.setColumnPadding(20);
        grid.setRowPadding(20);
        add(grid);
    }
}


I am able to create a simple gridview, now i want to add images and adding click function to these images, plz help me for this
Posted

1 solution

Please refer to this Article :
Thumbnail Images in GridView using C#[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900