But the problem is, write in it In the documentation:
tablesorter works on standard HTML
tables. You must include THEAD and
TBODY tags:
Unfortunately, asp.net only uses tags and header rows to render my GridView as row 1.
I tried:
dgvRate.HeaderRow.TableSection = TableRowSection.TableHeader;
After calling .DataBind();
It only helps with
I can do this, I mean move my first line from
to
?
I don’t want to add it manually in the PreRender stage; I believe this can be handled more easily, can’t it?
Thank you
protected void Page_Load(object sender, EventArgs e)
{
dgvRate.UseAccessibleHeader = true;
dgvRate.HeaderRow.TableSection = TableRowSection.TableHeader;
dgvRate.HeaderRow.CssClass = "headerclass";
}
Although, in order to behave consistently in all situations, I I will go to the PreRender route.
I want to use my asp.Net GridView control to use Christian Bach’s tableSorter client-side table sorting jQuery plugin.
< p>But the problem is that in the document it wrote:
tablesorter works on standard HTML
tables. You must include THEAD and
TBODY tags :
Unfortunately, asp.net only uses tags and header rows to render my GridView as row 1.
I tried:
dgvRate.HeaderRow.TableSection = TableRowSection.TableHeader;
After calling .DataBind();
It only helps
I can do this, I mean move my first line from
to < thead>< / thead>?
I don’t want to add it manually in the PreRender stage; I believe this can be handled more easily, can’t it?
Thank you
Sometimes you have to give it an accessible class to trigger it, as shown below:
protected void Page_Load(object sender, EventArgs e)
{
dgvRate.UseAccessibleHeader = true;
dgvRate.HeaderRow.TableSection = TableRowSection.TableHeader;
dgvRate.HeaderRow.CssClass = "headerclass";
}
Although, in order to behave consistently in all situations, I will go to the PreRender route.