ListView formatting

  • Thread starter Thread starter Ray Valenti
  • Start date Start date
R

Ray Valenti

When using the ListView without checkboxes can the selection bar be extended
to the left of the control? I have hidden the checkboxes but space for them
is still displayed.

Ray
 
Sorry, I don't understand
How have you hidden the checkboxes? If the CheckBoxes property
is set to false it shouldn't be any space to the left of the item.
Can you post a screenshot?

/claes
 
OK, it looks like the SmallImageList property is set
but you haven't set the image index for any item

Check the following properties:
CheckBoxes
SmallImageList
LargeImageList

Set the first to False and the others to (none)
That should remove the space

/claes
 
Claes Bergefall said:
OK, it looks like the SmallImageList property is set
but you haven't set the image index for any item

Check the following properties:
CheckBoxes
SmallImageList
LargeImageList

Set the first to False and the others to (none)
That should remove the space

/claes

I removed the Small imagelist and this does the trick but when the following
is removed I get nothing at all in the control.


ImageList imageListLarge = new ImageList();
//Assign the ImageList objects to the ListView.

listView1.LargeImageList = imageListLarge;



Thanks,

Ray
 
I removed the Small imagelist and this does the trick but when the
following
is removed I get nothing at all in the control.

What do you mean "empty"? Does the text disappear aswell?

ImageList imageListLarge = new ImageList();
//Assign the ImageList objects to the ListView.

listView1.LargeImageList = imageListLarge;

You don't add any images to the above imagelist so you won't
see any images. And the LargeImageList property has no effect
in Details view anyway. Just remove those rows




/claes
 
Back
Top