data-controls

Who actually uses DataGrid/GridView/FormView/etc in production apps?

一曲冷凌霜 提交于 2019-12-20 09:44:54
问题 Curious if others feel the same as me. To me, controls such as datagrid/gridview/formview/etc. are great for presentations or demo's only. To take the time and tweak this controls, override their default behavior (hooking into their silly events etc.) is a big headache. The only control that I use is the repeater, since it offers me the most flexibility over the others. In short, they are pretty much bloatware. I'd rather weave my own html/css, use my own custom paging queries. Again, if you

Who actually uses DataGrid/GridView/FormView/etc in production apps?

戏子无情 提交于 2019-12-02 19:45:00
Curious if others feel the same as me. To me, controls such as datagrid/gridview/formview/etc. are great for presentations or demo's only. To take the time and tweak this controls, override their default behavior (hooking into their silly events etc.) is a big headache. The only control that I use is the repeater, since it offers me the most flexibility over the others. In short, they are pretty much bloatware. I'd rather weave my own html/css, use my own custom paging queries. Again, if you need to throw up a quick page these controls are great (especially if you are trying to woo people into

Always show FooterTemplate, even no data

末鹿安然 提交于 2019-11-29 04:41:56
Is there a short way to make a FooterTemplate (in a GridView) always visible, even when DataSource is empty? If you want it to always display, regardless of content, can't you just put the footer html outside the GridView , instead of in the FooterTemplate ? If that's not an option for some reason, then you can either add an null row to your data source if it's empty , or subclass the GridView & override the default behaviour . Those are the only options I'm aware of (although its been a while since the last time I used a GridView ). Aximili I was having trouble with this as well. The link

Always show FooterTemplate, even no data

偶尔善良 提交于 2019-11-27 18:48:25
问题 Is there a short way to make a FooterTemplate (in a GridView) always visible, even when DataSource is empty? 回答1: If you want it to always display, regardless of content, can't you just put the footer html outside the GridView , instead of in the FooterTemplate ? If that's not an option for some reason, then you can either add an null row to your data source if it's empty, or subclass the GridView & override the default behaviour. Those are the only options I'm aware of (although its been a