Oct 10, 2011, 6:52 AM
[CLOSED] GridPanel: How to remove header
Hi,
I want to clear the content of the GridPanel when a button is clicked.
I tried gridpanel.ClearContent [server-side] but somehow this throws a javascript error.
When I try to attach an empty DataTable to the Store, somehow the Header of the GridPanel remains.
Server-Side:
Please advice.
I want to clear the content of the GridPanel when a button is clicked.
I tried gridpanel.ClearContent [server-side] but somehow this throws a javascript error.
When I try to attach an empty DataTable to the Store, somehow the Header of the GridPanel remains.
Server-Side:
var stTabTrendingList = GridPanel_TabTrendingList.GetStore();
stTabTrendingList.DataSource = new DataTable();
stTabTrendingList.DataBind();
I have checked that changing DataSource to empty DataTable makes the grid.ColumnModel.Columns.Count to zero (0) and the store.Reader.Count also to zero (0).Please advice.
Last edited by Daniil; Oct 10, 2011 at 8:44 AM.
Reason: [CLOSED]