Databinding to custom list-selector control

I'm trying to build a custom list selector control that has a collection of like objects in it (ie buttons). I'd like to be able to databind to this control where the page size matches the number of objects in the collection.

This seems like it should be pretty straight forward, but for some reason I can't get my head around it. Any advice/samples/pointers would be appretiated.

Thanks!
-james


Answer this question

Databinding to custom list-selector control

  • AlexanderGross

    Are you looking for an ASP.NET solution   If so, please post ASP.NET questions here http://forums.asp.net/.

    Thanks,

    Joe Stegman
    The Windows Forms Team
    Microsoft Corp.

    This posting is provided "AS IS" with no warranties, and confers no rights.


  • Hur?it

    OK - I think you're looking for a repeater control - unfortunately, Windows Forms doesn't include one of those.  The following sample may help in the development of your own custom data bound control:  http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/custcntrlsamp3.asp

    Joe Stegman
    The Windows Forms Team
    Microsoft Corp.

    This posting is provided "AS IS" with no warranties, and confers no rights.


  • Nicolas S.

    No, this is for a Windows .net application -- specifically I'm trying to solve a 10' UI issue. I have a form with a collection of buttons, I want to be able to link those buttons to a data set (label) and be able to indicate the current selection and page through multiple pages of data by updating the buttons with each page set.
  • Databinding to custom list-selector control