EmptyTemplate/EmptyDataText for DataList - by Sidharth Nayyar

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 673255 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 6/3/2011 2:51:14 AM
Access Restriction Public


In the gridview there's a nice feature called "EmptyDataText". It would be nice to have something similar for the DataList. As I see it there are 2 suggestions here. 

1. To have EmptyDataText for DataList. This will work similarly to the EmptyDataText for GridView in that if there's no rows returned by the datasource then it should display the text instead of the DataList

2. EmptyTemplate for DataList *and GridView*. It would also be nice if there was a new template (in addition to the itemtemplate, edittemplate, ...) that could be used if no rows are return by the datasource. This would work differently to the EmptyDataText in that the DataList/GridView fields/columns will still be displayed but the emptytemplate will be used to display an empty text for those fields. 

To further explain this, here's an example:

Columns: Associated Document, Associated Video, Associated Audio
Empty Data Text: No Associated Files
Empty Template: Name = "{No Doc}", "{No Video}", "{No Audio}"

1. EmptyDataText set (GridView)
| No Associated Files  |

2. EmptyDataText set (DataList)
| No Associated Files  |

3. EmptyDataText not set, emptytemplates used (GridView)
| Associated Document | Associated Video | Associated Audio  |
| {No Doc}                    | {No Video}         | {No Audio}           |

4. EmptyDataText not set, emptytemplates used (DataList)
| Associated Document | {No Doc}    |
| Associated Video        | {No Video} |
| Associated Audio        | {No Audio} |

I hope that makes sense.

Kind regards
Sign in to post a comment.
Posted by Microsoft on 6/7/2011 at 2:03 PM

Thank you for sharing your suggestions. Customer feedback is a critical part of a successful, impactful software product. Unfortunately another part is the reality of schedules and the need to prioritize investments according to the objectives of the product. We have evaluated your suggestion and at this point in the product's lifecycle, it does not meet the criteria to be addressed. This evaluation is carefully done and considers many aspects including the cost of the fix, implications of the change, and the number of reported instances of the issue.

Many customers have found it useful to discuss issues like this in the forums (http://www.microsoft.com/communities/forums/default.mspx) where Microsoft and other members of the community can recommend ways of achieving the behavior you are interested in.

Thank you,
The Windows Forms Product Team
Posted by Microsoft on 6/3/2011 at 3:13 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)