How to force the ASP.NET GridView Control Package Tags in the first line

I want to use my asp.Net GridView control to use Christian Bach’s tableSorter client-side table sorting jQuery plugin.

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 in the header. But still Everything is inside

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

Sometimes you have to give it an accessible class to trigger It is as follows:

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 < /TH> is inside the title. But still everything is inside

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.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2143 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.