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 |
|
|