Data grid does not do sorting

Hi there,



I v got a problem in my data grid:



by default, data grid can do the sorting task simply by a single click at the header. However, my grid does not have this. I tried to create a new simple page to try, but this time, the page does not even display the grid. please help!



here is my code:



<%@ Page Language=“C#” AutoEventWireup=“true” Codebehind=“TestWebForm.aspx.cs” Inherits=“VSAReporting.TestWebForm” %>









Test DHTMLX Grid























<%-- –%>















all the reference in this page is correct as well as the xml file. firebug does not report any error.



Thanks!










Problem occurs because of you doesn’t set correct height to the grid container





>>by default, data grid can do the sorting task simply by a single click at the header. However, my grid does not have this.


Add setColSorting method to the grid init:


mygrid.setColSorting(“int,int,int,int,int,int,int,int”);


Avalible sorting types: str, int, date, na or function object for custom sorting