创建支持 DynamicData 的自定义 GridView 控件
我对内置的 GridView 控件非常失望。
我想制作一个简单的数据输入 Web 应用程序,认为动态数据可以节省我的时间。
但事实证明,GridView 甚至不支持基本的用户界面场景,例如插入新行。
由于我正在构建的项目将大量包含这种情况,因此我正在考虑创建自己的网格视图控件来完全满足我的需要。
开发一个支持动态数据的Web控件很难吗? .NET 框架中是否有很多复杂的钩子依赖于闭源功能?
或者是否像使控件可数据绑定并具有 DataSourceObject 属性一样简单?
I'm very disappointed in the built-in GridView control.
I wanted to make a simple data-entry web application, thinking Dynamic Data would save me time.
But it turns out that the GridView doesn't even support basic user interface scenarios such as inserting a new row.
Since the project I'm building will incorporate this scenario a lot, I'm considering creating my own grid-view control that does exactly what I need.
Is it difficult to develop a web control that supports dynamic data? Are there a lot of complicated hooks that rely on closed-source functionality in the .NET framework?
Or is it as simple as making the control data-bindable and having a DataSourceObject property?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Gridview 控件只是一个 UI 控件,任何对该控件的插入都将由绑定到 gridview 控件的数据源完成。
Telerik 使他们的数据网格控件对 DD 友好 - 如果您想要的话,只需购买他们的数据网格控件即可节省大量时间。
The Gridview control is just a UI control, any inserting into that control would be done by the datasource bound to the gridview control.
Telerik makes their datagrid control DD-friendly - you could save yourself a lot of time just buying theirs if that is what you want.