Can you give an example of a sortable repeater? How do I use a datagrid if I need to bind two objects to it? I've only bound datagrids to datasources...
Thanks. On Sep 10, 2:43 am, Cerebrus <[EMAIL PROTECTED]> wrote: > I can think of two ways: > > 1. Create your own SortableRepeaterby deriving from theRepeater > control. > > 2. Implement custom sorting logic as illustrated here > :http://weblogs.asp.net/sushilasb/archive/2004/10/09/240110.aspx > > Of course, the easiest way is to use a DataList or DataGrid instead. > > On Sep 10, 5:13 am, rzaleski <[EMAIL PROTECTED]> wrote: > > > I have two objects: ObjectA and ObjectB. I also have two repeaters on > > a page: RepeaterA and RepeaterB (one nested inside another). > > > I get a list of ObjectAs and bind it to RepeaterA. On the > > ItemDataBound event of RepeaterA, I get a list of ObjectBs (based on > > ObjectA.ID) and bind it to RepeaterB. > > > Below is a sample of the data: > > > ObjectA.ID (1) ObjectB.ID (1) ObjectB.ID (2) > > ObjectA.ID (2) ObjectB.ID (3) ObjectB.ID (4) > > ... > > > I want to be able to sort based on column 2 and column 3. Is there > > any easy way to do this? > > > I would normally just use a datagrid, but I don't think it will work > > in this application. > > > Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://cm.megasolutions.net/forums/default.aspx -~----------~----~----~----~------~----~------~--~---
