property Items.CellCaption ([Item as Variant], [ColIndex as Variant]) as String
Gets the cell's display value.

 TypeDescription 
   Item as Variant A long expression that indicates the item's handle  
   ColIndex as Variant A long expression that indicates the column's index, a string expression that indicates the column's caption or the column's key.  
   String A string expression that indicates the cell's value as it is displayed on the user interface.   

The CellCaption property retrieves the cell's display value as it is displayed on the control's user interface. If the cell has no editor associated ( no editor was assigned to the column and no editor was assigned to the cell ), the CellCaption property gets the string representation of the cell's value. Use the CellValue property to change the cell's value. For instance, if a cell has a drop down list editor, the CellCaption property retrieves the caption of the predefined values. Use the CellImage property to assign an icon to a cell. Use the CellImages property to assign multiple icons to a cell. Use the CellPicture property to assign a custom size picture to a cell. Use the <img> HTML tag to insert icons inside the cell's caption, if the CellValueFormat property is exHTML.


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.