CodeSmith Community
Your Code. Your Way. Faster!

Bindable ArrayList

Latest post 08-06-2005 10:03 PM by n1ck0s. 2 replies.
  • 04-12-2005 3:11 AM

    • swein
    • Not Ranked
    • Joined on 06-01-2003
    • Posts 3
    • Points 135

    Bindable ArrayList

    I've made some modifications to Christoph Nahr's ArrayList (v1.5) so that supports IBindingList, which makes binding these ArrayLists
    to DataGrids nicer.
     
    I have not yet implemented IBindingList search or sort. And I needed to modify this[int index] and ValidateIndex to accept an index of -1.
     
     
    • Post Points: 65
  • 07-29-2005 9:23 PM In reply to

    • hawk_m_m
    • Not Ranked
    • Joined on 07-29-2005
    • Posts 1
    • Points 5

    RE: Bindable ArrayList

    I get the following errors...

    (0,0): error CODESMITH0002: Include file "Commonscript.cs" not found.
    (22,17): error CS0246: The type or namespace name 'AccessibilityEnum' could not be found (are you missing a using directive or an assembly reference?)
    (98,16): error CS0246: The type or namespace name 'AccessibilityEnum' could not be found (are you missing a using directive or an assembly reference?)

    Build complete -- 3 errors, 0 warnings
    • Post Points: 5
  • 08-06-2005 10:03 PM In reply to

    • n1ck0s
    • Not Ranked
    • Joined on 08-06-2005
    • Posts 1
    • Points 5

    RE: Bindable ArrayList

    @hawk_m_m: This template needs Commonscript.cs file and some other .cst templates to be in the same folder. Locate the Commonscript.cs file somewhere in the CodeSmith folder and place this template there.

    @ScottW: I am trying to change the ArrayList template v1.6.0 so that it implements the IBindingList interface. I tried copying the IBindingList region from your file to the original ArrayList v1.6.0 file, but it doesn't work properly. Besides implementing this interfaces did you make any other changes to the template?
    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems