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.Net/WPF
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Wed Jul 01, 2009 6:26 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 AfterItemAdd event
as follows:
[C#]
Code:
private void fileView1_AfterItemAdd(object sender, LogicNP.FileViewControl.FileViewEventArgs e)
{
   e.Item.SetColumnText(("Type"), 0, "My File");
}


[VB.Net]
Private Sub FileView1_AfterItemAdd(ByVal sender As System.Object, ByVal e As
Code:
LogicNP.FileViewControl.FileViewEventArgs) Handles FileView1.AfterItemAdd

   e.Item.SetColumnText(("Type"), 0, "My File")

End Sub
Back to top
Display posts from previous:   
Forum Index -> FileView.Net/WPF All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group