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

[Solved] radgrid headers

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 05 Aug 2009, 02:52 AM
Hi,

I've a radgrid with 2 columns one is  a gridbound col and other is a gridtemplate column.
These columns have been declared in my .ascx (design side).
Now, I need to get the grid headers when the radgrid has no items(rows) in it. So, how do i implement this??

So, how do i get the header names atleast when the grid is empty???
Thanks,
ZR

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Aug 2009, 04:52 AM
Hello Zaheka,

Try setting the ShowHeadersWhenNoRecords property of the MasterTableView to True and see if it helps.
aspx:
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server"
       <MasterTableView ShowHeadersWhenNoRecords="true" DataSourceID="SqlDataSource1"

Thanks
Princy.
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or