Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2387
UltraTabStripControl --> Getting the data bound object
posted

The UltraTreeNode object has the property, ListObject which "Returns the object corresponding to this row from the IList that the control is bound to.", how does one get the same information from a selected tab in a UltraTabStripControl?

Sam

Parents Reply
  • 2387
    Verified Answer
    posted in reply to Matt Snyder

    Thank you! Actually .Net 3.5 introduced the concept of Extension Methods, so I simply created a GetListObject using your code and it works great:

        public static class InfragisticsExtensions
        {
            public static object GetListObject(this UltraTab tab)
            {
                PropertyInfo propInfo = typeof(UltraTab).GetProperty("ListObject", BindingFlags.Instance | BindingFlags.NonPublic);
                object listObject = propInfo.GetValue(tab, null);
                return listObject;
            }
        }

    Just wondering...  Is that by design or is it a bug, aka can I look for it to be exposed someday?

    Sam

Children