Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Wed Jul 01, 2009 6:29 am Post subject: HOWTO: Overwrite/modify column text |
|
|
To overwrite/modify the column text for system columns such as Size, Date Modified, Type, etc, use the SetColumnText method in the OnAfterItemAdd event
as follows:
[VB6]
Code: | Private Sub FileView1_OnAfterItemAdd(ByVal Item As FileViewControl.IListItem)
Item.SetColumnText "Type", 0, "My File"
End Sub |
[C++]
Code: | void CFilViewVC::OnOnAfterItemAddFileviewctrl1(LPDISPATCH Item)
{
CListItem item;
item.AttachDispatch(Item,FALSE);
item.SetColumnText(_T("Type"), 0, _T("My File"));
} |
|
|