dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.35k stars 965 forks source link

Incorporate DataRepeater control into Winforms #10848

Open Zbig9112 opened 7 months ago

Zbig9112 commented 7 months ago

Environment

Visual Studio 17.8.5

.NET version

Net Framework 4.8

Did this work in a previous version of Visual Studio and/or previous .NET release?

2019

Issue description

DataRepeater control is not visible on the form and any change to any control on the form corrupts the datarepeater and all controls within it disappear.

Please incorporate the DataRepeater code into github so I can try to fix the issue.

Steps to reproduce

  1. Open form
  2. DataRepeaters appear in the form but when you click on them they do not exist
  3. Any change to the form will corrupt the DataRepeater and all controls within it will disappear

Diagnostics

No response

elachlan commented 7 months ago

The DataRepeater docs can be found here: https://learn.microsoft.com/en-us/previous-versions/bb894815(v=vs.140)

@merriemcgaw might know if the team has access to the source code. But I imagine its less likely to be implemented because it isn't one of the winapi common controls:

Winforms wraps the underlying winapi controls that windows provides. I believe DataRepeater is just a combination of multiple WinAPI controls and not a single control provided by Windows.

paul1956 commented 6 months ago

@elachlan, @merriemcgaw If someone would post source on GitHub I would be interested in porting to latest .Net Core and making a NuGet available. I didn't know it existed and created my own which is terribly slow and limited to ~2,000 items finally ended up replacing that with just fixed font text on a RTB as a temporary read-only workaround.

elachlan commented 6 months ago

I do not work at Microsoft, so have no access to the source code. I imagine the Visual Studio team will need to provide the source code to the winforms team and then they would have to review the source code to see if its worth including or writing a new control based on gridview. Its not a small undertaking.

merriemcgaw commented 6 months ago

@elachlan @paul1956 @Zbig9112 - Thank you all for your feedback here! I'd be happy to bring the idea of a data repeater control back to my team for discussion as to whether to bring into .NET 9. Barring that, perhaps @KlausLoeffelmann has some ideas?

paul1956 commented 6 months ago

@merriemcgaw few questions 1) Is source available? If so, can it be hosted on GitHub and what language is it written in? 2) Is there enough interest to add to WinForm? 3) Does it have to be part of WinForms or can it just be a NuGet?

merriemcgaw commented 6 months ago

@paul1956 I'm digging into that and working with both @KlausLoeffelmann and @KathleenDollard about the idea. We'll circle back when we have more.

merriemcgaw commented 5 months ago

@paul1956, @elachlan , @Zbig9112 - we've talked about it and in principle we like the idea. That said, I don't see team bandwidth to get this in for .NET 9. I'm keeping this open, in case we've got some additional support and to re-evaluate for .NET 10. Thanks for bringing this one up - I think it is a great idea!

paul1956 commented 5 months ago

I presume from your answer the control is not open source?  I have a slow workaround and will wait until it’s released to improve the app.Sent from my iPhoneI apologize for any typos Siri might have made.(503) 803-6077On Mar 19, 2024, at 2:08 PM, Merrie McGaw @.***> wrote: @paul1956 - we've talked about it and in principle we like the idea. That said, I don't see team bandwidth to get this in for .NET 9. I'm keeping this open, in case we've got some additional support and to re-evaluate for .NET 10. Thanks for bringing this one up - I think it is a great idea!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>