Utilizing the NTreelist, and binding (via your sample) to a microsoft access query, I am returning the date as a vbShortDate, however when displayed - the time (12:00:00) is added.... How can I format the date so it only shows as whats returned from the query?
Thanks
Hi Gary,
In this case you will have to subclass the NTreeListTableData class by the following way:
Public
item =
End Function
End Class
This way you will be able to manage the visual representation of the DateTime item.
Regards,
Angel.
Thanks Angel, I'll give this a try once I get the controls installed....
I upgraded a new machine to windows 7 and the controls install, but they are not available in studio 2008.
Gary
The problem might be because you are trying to install .NET Vision for VS2005. We have separate installations for VS2005 and VS2008.
You can download the VS2008 version from our download page:
http://nevron.com/Downloads.Download.aspx
I dont know how I missed that Angel. I'm downloading the 2008 version now... will update after I get it installed. Thanks!
Both can work together. You can keep Nevron .NET Vision for VS2005 installed if you are going to use VS2005. Otherwise you can uninstall it.
Thanks Angel, but I dont even have vs2005...lol... Installing the 2008 version solved the problem. Thanks again...
Hi Angel, Got all my other issues taken care of and now I'm dealing with the treelist again.
MyNTreeListTableData
I attempted to utilize this function you provided, but I have no idea how or where to use it. Can you explain? Is there any documentation on the Tree List? I couldnt find any.... But if you can explain how to utilize the formating sub class you provided I would be much appreciative! Thanks!
When you try to bind data to NTreeList you usually do the following:
Dim
data.Table = myDataTable
data.Bind(NTreeList1)
Now instead of using NTreeListTableData use the class above (MyNTreeListTableData):
And because in MyNTreeListTableData the way DateTime type is displayed was overridden with the desired DateTime format, your DateTime values will be displayed in this format.
Perfect Angel... just as I needed... Thanks for the explanation, as usual - you guys are right there..!
Appreciate it!