Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Overwrite/modify column text

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView ActiveX Control
View previous topic :: View next topic  
Author Message
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"));
}
Back to top
Display posts from previous:   
Forum Index -> FileView ActiveX Control All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group