Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to display a line when the DXGrid doesn't include any record

$
0
0

This sample shows how to display a message in the grid if there are no visible rows.

Question Comments

Added By: Sam Wheat at: 6/9/2013 5:48:12 PM    

Is this included in the base product?

If no, why not?

Added By: Goran_ at: 11/15/2013 4:29:46 AM    

Hi,

I also think that empty template should be available DxGrid, DxChart, and other "items controls".

The title of this example is not correct. This code does is not related to DxGrid, but to TableView, since it does not not work for CardView. Why there is no rowPresenterGrid element in CardView (haven't looked into other views)?

Regards,
Goran

Added By: Richard Barrow at: 8/15/2014 9:04:26 AM    

Broken for 14.1. You need to change

container.Children.Add(emptyGridContentresenter);

to

Grid.SetRow(emptyGridContentresenter, 1);
container.Children.Add(emptyGridContentresenter);

As the GridView template has changed.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>