FritzAndFriends / BlazorWebFormsComponents

A collection of Blazor components that emulate the ASP.NET Web Forms controls of the same name
MIT License
428 stars 72 forks source link

Investigate: Can we simplify DataTable datasources? #191

Closed csharpfritz closed 4 years ago

csharpfritz commented 4 years ago

Can we either wrap our components or improve the DataBinding code to detect a DataTable / DataSet and execute the AsDynamicEnumerable() extension method internally to the component?

We need to simplify the signature of the controls so that using a DataTable / DataSet ONLY requires the same markup or API interaction as the original control

hishamco commented 4 years ago

Can we either wrap our components or improve the DataBinding code to detect a DataTable / DataSet and execute the AsDynamicEnumerable() extension method internally to the component?

That's exactly what I wanna do ;)

We need to simplify the signature of the controls so that using a DataTable / DataSet ONLY requires the same markup or API interaction as the original control

This can happen if we fix the original issue which is make DataSource property returns Object instead of IEnumerable<T>, You can assign this to me and I will start on working to refactor this