A simple application of the custom paging of the GridView in VS2005, radio, multiple selection, sorting and self-adding columns
Source: Internet
Author: User
A simple application of the custom paging of the GridView in VS2005, radio, multiple selection, sorting, and self adding columns.
When you select multiple selections, select multiple selections only when all is selected.
Picture effect:
Simple example, the code is as follows,
Code for Fenpage.aspx:
<% @ Page language= "C #" autoeventwireup= "true" codefile= "Fenpage.aspx.cs" inherits= "Gridview_fenpage"%>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head runat = "server" >
< title ></title >
< SCRIPT language = "javascript" type = "Text/javascript" >
Determines whether multiple selections are selected (returns false without selection)
function Slcno_click ()
{
if (document.form1.checkboxname.length)
{
for (Var i=0;i<document.form1.checkboxname.length;i++)
{
if (document.form1.checkboxname[i].checked)
{
return true;
}
}
}
Else
{
if (document.form1.checkboxname.checked)
{
return true;
}
}
Alert ("Please select a later operation.") ");
return false;
}
The mouse changes the color of the row
if (!objbeforeitem)
{
var objbeforeitem=null;
var objbeforeitembackgroundcolor=null;
}
function
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.