This is a migrated thread and some comments may be shown as answers.

showing empty grid when no items exist

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Venkatesh
Top achievements
Rank 1
Venkatesh asked on 03 Dec 2012, 12:59 PM
Hi,
How to show the empty grid with the headers , even when the datasource is null?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Dec 2012, 01:07 PM
Hello,

Set String.Empty in place of null.

RadGrid1.DataSource = string.Empty;


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Venkatesh
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or