master
editor 2 weeks ago
commit 77cdc8cb05

@ -0,0 +1,40 @@
TREEVIEW实现复选联动及GRIDVIEW导出EXCEL
一、源码描述
环境VS2022 
二、功能介绍
YYControls应用之TreeView实现复选联动及GridView导出Excel、Word、Text
联动复选框(复选框的全选和取消全选)。选中指定的父复选框,则设置其所有子复选框为选中状态;取消选中指定的父复选框,则设置其所有子复选框为取消选中状态。
如果某父复选框的所有子复选框为均选中状态,则设置该父复选框为选中状态;如果某复选框的所有子复选框至少有一个为取消选中状态,则设置该父复选框为取消选中状态
使用方法设置属性AllowCascadeCheckbox - 是否启用联动复选框功能
YYControls为控件源码Web为应用站点程序所有数据为程序自动调用生成
三、注意事项
ctrl+F5运行即可。
作者: webabcd
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/TreeViewCheck
------------------------------------------------------------------------------------------------
源码服务专家
官网: https://www.51aspx.com
讨论圈: https://club.51aspx.com/
平台声明:
1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用;
2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有;
3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com
4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性;
友情提示:
一般数据库文件默认在 DB_51Aspx 文件夹下
默认账号密码一般均为51Aspx
关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls
{
/// <summary>
/// <20><><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><D6B5>λ<EFBFBD><CEBB>
/// </summary>
public enum AttributeValuePosition
{
/// <summary>
/// <20><>ʼ
/// </summary>
First,

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.Helper
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>Helper
/// </summary>
public partial class Common
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.Helper
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>Helper
/// </summary>
public partial class Common
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Xsl;
using System.Web;
using System.Data;
using System.IO;
namespace YYControls.Helper
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>Helper
/// </summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls.Helper
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>Helper
/// </summary>
//5 1 a s p x.com
public partial class Common
{
/// <summary>
/// <20><EFBFBD><E6BBBB><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
/// </summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.Helper
{
/// <summary>
/// SmartGridView<65><77>Helper
/// </summary>
// 5_1_a_s_p_x.c_o_m
public class SmartGridView

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Web.UI;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("YYControls")]
[assembly: AssemblyDescription("http://webabcd.cnblogs.com")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("http://webabcd.cnblogs.com")]
[assembly: AssemblyProduct("YYControls")]
[assembly: AssemblyCopyright("版权所有 (C) http://webabcd.cnblogs.com 2007")]

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls.Resources
{
/// <summary>
/// Icon
/// </summary>
public class Icon
{
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
public class CascadeCheckbox
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>򣨸<EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD>ȫѡ<C8AB><D1A1>ȡ<EFBFBD><C8A1>ȫѡ<C8AB><D1A1>
/// </summary>
public class CascadeCheckboxFunction : ExtendFunction
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// CascadeCheckbox<6F><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// ע<><D7A2>Ҫ<EFBFBD>̳<EFBFBD><CCB3><EFBFBD>CollectionBase
/// </summary>
[ToolboxItem(false)]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private CascadeCheckboxes _cascadeCheckboxes;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// <20>е<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>ѡ<EFBFBD><D1A1>ʱ<EFBFBD>ı<EFBFBD><C4B1>е<EFBFBD><D0B5><EFBFBD>ʽʵ<CABD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class CheckedRowCssClass

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3>е<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>ѡ<EFBFBD><D1A1>ʱ<EFBFBD>ı<EFBFBD><C4B1>е<EFBFBD><D0B5><EFBFBD>ʽ
/// </summary>
public class CheckedRowCssClassFunction : ExtendFunction
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private CheckedRowCssClass _checkedRowCssClass;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace YYControls
{
/// <summary>
/// <20>ͻ<EFBFBD><CDBB>˰<EFBFBD>ťʵ<C5A5><CAB5><EFBFBD><EFBFBD><E0A3A8><EFBFBD>ݰ<EFBFBD>ť<EFBFBD><C5A5>CommandName<6D><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԣ<EFBFBD>
/// </summary>
[ToolboxItem(false)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class ClientButton
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD>ݰ<EFBFBD>ť<EFBFBD><C5A5>CommandName<6D><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public class ClientButtonFunction : ExtendFunction
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// ClientButton<6F><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// ע<><D7A2>Ҫ<EFBFBD>̳<EFBFBD><CCB3><EFBFBD>CollectionBase
/// </summary>
[ToolboxItem(false)]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private ClientButtons _clientButtons;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// <20>Ҽ<EFBFBD><D2BC>˵<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
public class ContextMenu
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҽ<EFBFBD><D2BC>˵<EFBFBD>
/// </summary>
public class ContextMenuFunction : ExtendFunction
{
List<string> _rowRightClickButtonUniqueIdList = new List<string>();

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// ContextMenu<6E><75><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// ע<><D7A2>Ҫ<EFBFBD>̳<EFBFBD><CCB3><EFBFBD>CollectionBase
/// </summary>
[ToolboxItem(false)]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private ContextMenus _contextMenus;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// <20>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>ʽʵ<CABD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class CustomPagerSettings

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using System.Collections;
using System.Data;
using System.Web.UI.HtmlControls;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>ʽ

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private CustomPagerSettings _customPagerSettings;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public partial class SmartGridView
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Web.UI.WebControls;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public abstract class ExtendFunction
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
protected SmartGridView _sgv;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace YYControls
{
/// <summary>
/// <20>̶<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>С<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>е<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
[TypeConverter(typeof(ExpandableObjectConverter))]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3>̶<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>С<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>
/// </summary>
public class FixRowColumnFunction : ExtendFunction
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private FixRowColumn _fixRowColumn;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
namespace YYControls
{
/// <summary>
/// GridViewTableCell
/// </summary>
public class GridViewTableCell
{
private TableCell _tableCell;
private int _columnIndex;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD>ί<EFBFBD>в<EFBFBD><D0B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EABEAD><EFBFBD><EFBFBD>ʱ<EFBFBD>ı<EFBFBD><C4B1>е<EFBFBD><D0B5><EFBFBD>ʽ
/// </summary>
public class MouseOverCssClassFunction : ExtendFunction
{
/// <summary>
/// <20><><EFBFBD><EFBFBD><ECBAAF>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private string _mouseOverCssClass;
/// <summary>

File diff suppressed because one or more lines are too long

@ -0,0 +1,15 @@
//----------------------------
// http://webabcd.cnblogs.com/
//----------------------------
/*Helper 开始*/
function yy_sgv_get(id)
{
/// <summary>$get()</summary>
return document.getElementById(id);
}
function yy_sgv_changeCssClass(param, cssClass)
{
/// <summary>根据ID或元素设置其样式 css 类名</summary>

@ -0,0 +1,15 @@
/*固定行*/
.yy_sgv_fixRow
{
position: relative; top: expression(this.offsetParent.scrollTop - 1);
}
/*固定列*/
.yy_sgv_fixCol
{
position: relative; left: expression(this.offsetParent.scrollLeft - 1);
}
/*高优先级的固定*/
.yy_sgv_fixHigh
{
z-index: 9999;
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private string _boundRowClickCommandName;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD>Ӧ<EFBFBD>еĵ<D0B5><C4B5><EFBFBD><EFBFBD>¼<EFBFBD>
/// </summary>
public class RowClickFunction : ExtendFunction
{
List<string> _rowClickButtonUniqueIdList = new List<string>();

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private string _boundRowDoubleClickCommandName;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD>Ӧ<EFBFBD>е<EFBFBD>˫<EFBFBD><CBAB><EFBFBD>¼<EFBFBD>
/// </summary>
public class RowDoubleClickFunction : ExtendFunction
{
List<string> _rowDoubleClickButtonUniqueIdList = new List<string>();

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
using YYControls.SmartGridViewFunction;
[assembly: System.Web.UI.WebResource("YYControls.SmartGridView.Resources.Asc.gif", "image/gif")]
[assembly: System.Web.UI.WebResource("YYControls.SmartGridView.Resources.Desc.gif", "image/gif")]
[assembly: System.Web.UI.WebResource("YYControls.SmartGridView.Resources.Icon.bmp", "image/bmp")]
[assembly: System.Web.UI.WebResource("YYControls.SmartGridView.Resources.StyleLibrary.css", "text/css")]
#if DEBUG

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private SmartSorting _smartSorting;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// <20>߼<EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class SmartSorting

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4><CCAC>ʾ
/// </summary>
public class SmartSortingFunction : ExtendFunction
{
/// <summary>

@ -0,0 +1,7 @@
2007.08.09
<EFBFBD><EFBFBD><EFBFBD>BUG
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޷<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>
BUG<EFBFBD><EFBFBD>ߣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӣ<EFBFBD>http://cancelpj.cnblogs.com/<2F><>
2007.08.08
<EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD>

@ -0,0 +1,15 @@
<EFBFBD><EFBFBD>չGridView<EFBFBD>ؼ<EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
http://www.cnblogs.com/webabcd/archive/2007/02/04/639830.html
<EFBFBD>ؼ<EFBFBD>ʹ<EFBFBD><EFBFBD>
1<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD>ʱ<EFBFBD><EFBFBD>ı<EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD>ʱ<EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><EFBFBD><EFBFBD>ʽ
ʹ<EFBFBD>÷<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԣ<EFBFBD><EFBFBD><EFBFBD>
MouseOverCssClass - <20><><EFBFBD><EABEAD><EFBFBD><EFBFBD>ʱ<EFBFBD>е<EFBFBD> CSS <20><><EFBFBD><EFBFBD>
2<EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><EFBFBD><EFBFBD>ֶν<EFBFBD><EFBFBD>и<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򡢽<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬<EFBFBD><EFBFBD>ʾ
ʹ<EFBFBD>÷<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SmartSorting<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԣ<EFBFBD><EFBFBD><EFBFBD>
AllowSortTip - <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// ͨ<><CDA8><EFBFBD>е<EFBFBD>CheckBox<6F><78>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD><DEB8>е<EFBFBD><D0B5><EFBFBD>ʽ
/// ʵ<><CAB5><EFBFBD><EFBFBD>
/// </summary>
[TypeConverter(typeof(ExpandableObjectConverter))]
public class ChangeRowCSSByCheckBox
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// CheckboxAll <20><>ժҪ˵<D2AA><CBB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
public class CheckboxAll
{

@ -0,0 +1,15 @@
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// CheckboxAlls <20><>ժҪ˵<D2AA><CBB5><EFBFBD><EFBFBD>
/// ע<><D7A2>Ҫ<EFBFBD>̳<EFBFBD><CCB3><EFBFBD>CollectionBase
/// </summary>
[
ToolboxItem(false),
ParseChildren(true)
]
public class CheckboxAlls : CollectionBase

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// ConfirmButton <20><>ժҪ˵<D2AA><CBB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
[TypeConverter(typeof(ConfirmButtonConverter))]
public class ConfirmButton

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Globalization;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD>
/// </summary>
public class ConfirmButtonConverter : ExpandableObjectConverter
{
/// <summary>

@ -0,0 +1,15 @@
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// ProjectGroups <20><>ժҪ˵<D2AA><CBB5><EFBFBD><EFBFBD>
/// ע<><D7A2>Ҫ<EFBFBD>̳<EFBFBD><CCB3><EFBFBD>CollectionBase
/// </summary>
[
ToolboxItem(false),
ParseChildren(true)
]
public class ConfirmButtons : CollectionBase

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// ContextMenu <20><>ժҪ˵<D2AA><CBB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
public class ContextMenu
{

@ -0,0 +1,15 @@
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// ContextMenus <20><>ժҪ˵<D2AA><CBB5><EFBFBD><EFBFBD>
/// ע<><D7A2>Ҫ<EFBFBD>̳<EFBFBD><CCB3><EFBFBD>CollectionBase
/// </summary>
[
ToolboxItem(false),
ParseChildren(true)
]
public class ContextMenus : CollectionBase

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// <20>̶<EFBFBD><CCB6><EFBFBD>ͷ<EFBFBD><CDB7>ָ<EFBFBD><D6B8><EFBFBD>л<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>е<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[TypeConverter(typeof(ExpandableObjectConverter))]
public class FixRowCol
{
private bool _isFixHeader;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// javascript
/// </summary>
public class JavaScriptConstant
{
#region <20><>ѡ<EFBFBD><D1A1>ȫѡ<C8AB>Ľű<C4BD>
internal const string jsCheckAll = @"<script type=""text/javascript"">
//<![CDATA[
// <20>Ƿ<EFBFBD><C7B7><EFBFBD>á<EFBFBD>yy_ClickCheckItem<65><6D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// <20>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD>
/// </summary>
public class Paging
{
/// <summary>
/// <20>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>ʽ

@ -0,0 +1,15 @@
/*----------
* webabcd.cnblogs.com
* <EFBFBD>Ƚ<EFBFBD><EFBFBD>ң<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ع<EFBFBD><EFBFBD><EFBFBD>
----------*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using System.Collections.Specialized;
namespace YYControls.SmartGridViewAlpha
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace YYControls.SmartGridViewAlpha
{
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>
/// </summary>
[TypeConverter(typeof(ExpandableObjectConverter))]
public class SortTip
{
private string _sortDescImage;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartTreeViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
/// </summary>
public class CascadeCheckboxFunction : ExtendFunction
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartTreeView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartTreeView
{
private bool _allowCascadeCheckbox;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls.SmartTreeViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public abstract class ExtendFunction
{
/// <summary>
/// SmartTreeView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
protected SmartTreeView _stv;

@ -0,0 +1 @@
String.prototype.yy_stv_startsWith=function(s){var _2=new RegExp("^"+s);return _2.test(this);};function yy_stv_addEvent(_3,_4,fn){if(_3.addEventListener){_3.addEventListener(_4,fn,true);return true;}else{if(_3.attachEvent){var r=_3.attachEvent("on"+_4,fn);return r;}else{return false;}}}var yy_stv_ccTreeView_pre=new Array();function yy_stv_ccClickCheckbox(e){var _8=e||window.event;var _9=_8.target||_8.srcElement;yy_stv_checkChildCheckbox(_9);yy_stv_checkCertainCheckbox(_9);}function yy_stv_checkParentCheckbox(_a,_b){var _c=_a.parentNode.parentNode.childNodes;for(var i=1;i<_c.length;i++){if(_c[i]==_a.parentNode){if(typeof (_c[i-1])=="undefined"||typeof (_c[i-1].rows)=="undefined"){return;}for(var j=0;j<_c[i-1].rows[0].cells.length;j++){var _f=_c[i-1].rows[0].cells[j].childNodes[0];if(_f.tagName=="INPUT"&&_f.type=="checkbox"){_f.checked=_b;yy_stv_checkCertainCheckbox(_c[i-1]);return;}}}}}function yy_stv_checkChildCheckbox(obj){var _11;if(obj.tagName=="INPUT"&&obj.type=="checkbox"){_11=obj.checked;do{obj=obj.parentNode;}while(obj.tagName!="TABLE");}var _12=obj.parentNode.childNodes;for(var i=0;i<_12.length-1;i++){if(_12[i]==obj&&_12[i+1].tagName=="DIV"){var _14=_12[i+1].getElementsByTagName("INPUT");for(j=0;j<_14.length;j++){if(_14[j].type=="checkbox"){_14[j].checked=_11;}}}}}function yy_stv_checkCertainCheckbox(obj){var _16=0;var _17=0;if(obj.tagName=="INPUT"&&obj.type=="checkbox"){do{obj=obj.parentNode;}while(obj.tagName!="TABLE");}var _18=obj.parentNode.getElementsByTagName("TABLE");if(typeof (_18)=="undefined"){return;}for(var i=0;i<_18.length;i++){for(var j=0;j<_18[i].rows[0].cells.length;j++){var chk=_18[i].rows[0].cells[j].childNodes[0];if(chk.tagName=="INPUT"&&chk.type=="checkbox"){if(chk.checked){_16++;}else{_17++;}}}}if(_17==0){yy_stv_checkParentCheckbox(obj,true);}else{yy_stv_checkParentCheckbox(obj,false);}}function yy_stv_attachCheckboxClickListener(){var _1c=document.getElementsByTagName("INPUT");for(i=0;i<_1c.length;i++){if(_1c[i].type=="checkbox"){for(j=0;j<yy_stv_ccTreeView_pre.length;j++){if(_1c[i].id.yy_stv_startsWith(yy_stv_ccTreeView_pre[j])){yy_stv_addEvent(_1c[i],"click",yy_stv_ccClickCheckbox);break;}}}}}if(document.all){window.attachEvent("onload",yy_stv_attachCheckboxClickListener);}else{window.addEventListener("load",yy_stv_attachCheckboxClickListener,false);}

@ -0,0 +1,15 @@
//----------------------------
// http://webabcd.cnblogs.com/
//----------------------------
/*Helper 开始*/
String.prototype.yy_stv_startsWith = function(s)
{
/// <summary>StartsWith()</summary>
var reg = new RegExp("^" + s);
return reg.test(this);
}
function yy_stv_addEvent(obj, evtType, fn)
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using YYControls.SmartTreeViewFunction;
#if DEBUG
[assembly: System.Web.UI.WebResource("YYControls.SmartTreeView.Resources.ScriptLibraryDebug.js", "text/javascript")]
#else
[assembly: System.Web.UI.WebResource("YYControls.SmartTreeView.Resources.ScriptLibrary.js", "text/javascript")]
#endif

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{B542A4FB-3FDF-4A3D-82BD-FB8D86D75055}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>YYControls</RootNamespace>
<AssemblyName>YYControls</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

@ -0,0 +1,15 @@
<!DOCTYPE html>
<!-- saved from url=(0014)about:internet -->
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-16" http-equiv="Content-Type" /><title _locID="ConversionReport0">
Migration Report
</title><style>
/* Body style, for the entire document */
body
{
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}

@ -0,0 +1,40 @@
TREEVIEW实现复选联动及GRIDVIEW导出EXCEL
一、源码描述
环境VS2022&nbsp;
二、功能介绍
YYControls应用之TreeView实现复选联动及GridView导出Excel、Word、Text
联动复选框(复选框的全选和取消全选)。选中指定的父复选框,则设置其所有子复选框为选中状态;取消选中指定的父复选框,则设置其所有子复选框为取消选中状态。
如果某父复选框的所有子复选框为均选中状态,则设置该父复选框为选中状态;如果某复选框的所有子复选框至少有一个为取消选中状态,则设置该父复选框为取消选中状态
使用方法设置属性AllowCascadeCheckbox - 是否启用联动复选框功能
YYControls为控件源码Web为应用站点程序所有数据为程序自动调用生成
三、注意事项
ctrl+F5运行即可。
作者: webabcd
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/TreeViewCheck
------------------------------------------------------------------------------------------------
源码服务专家
官网: https://www.51aspx.com
讨论圈: https://club.51aspx.com/
平台声明:
1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用;
2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有;
3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com
4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性;
友情提示:
一般数据库文件默认在 DB_51Aspx 文件夹下
默认账号密码一般均为51Aspx
关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help

@ -0,0 +1,15 @@
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.ComponentModel;
using System.Collections.Generic;
/// <summary>
/// OjbData 的摘要说明

@ -0,0 +1,15 @@
body, table, tr, td
{
margin: 0;
font-size: 12px;
}
textarea,input,select
{
font-size: 12px; color: #000000; font-weight: normal;
border-top-width : 1px; border-right-width : 1px;
border-bottom-width : 1px; border-left-width : 1px;
}
#header
{
width: 100%;

@ -0,0 +1,15 @@
.OverRow
{
background-color: #A1ADF1;
text-align: center;
}
.SelectedRow
{
background-color: #D1DDF1;
color: #333333;
font-weight: bold;
text-align: center;
}
.Row
{
background-color: #EFF3FB;

@ -0,0 +1,5 @@
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" Title="YYControls演示" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
</asp:Content>

@ -0,0 +1,15 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

@ -0,0 +1,15 @@
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!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>YYControls测试</title>
</head>
<body>
<form id="form1" runat="server">
<div id="header">
<div>
<asp:Label ID="lblTitle" runat="server" Text="YYControls" CssClass="Title" />
<span class="breadcrumb">
<asp:SiteMapPath ID="SiteMapPath1" runat="server">
</asp:SiteMapPath>
<a href="http://webabcd.cnblogs.com" target="_blank">http://webabcd.cnblogs.com</a>

@ -0,0 +1,15 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{

@ -0,0 +1,15 @@
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="SmartGridView.aspx.cs" Inherits="SmartGridView" Title="SmartGridView测试"
EnableViewState="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
<div id="result" runat="Server">
</div>
<div>
SmartGridView1</div>
<div style="margin: 5px 0px">
<asp:Button ID="btnExcel" runat="server" Text="导出为Excel" CommandName="ExportExcel"
OnCommand="btn_Command" />
<asp:Button ID="btnWord" runat="server" Text="导出为Word" CommandName="ExportWord" OnCommand="btn_Command" />
<asp:Button ID="btnText" runat="server" Text="导出为Text" CommandName="ExportText" OnCommand="btn_Command" /></div>
<yyc:SmartGridView ID="sgv1" runat="server" AllowPaging="True" AllowSorting="true"

@ -0,0 +1,15 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class SmartGridView : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

@ -0,0 +1,15 @@
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="SmartGridViewAlpha.aspx.cs" Inherits="SmartGridViewAlpha" Title="SmartGridViewAlpha<68><61><EFBFBD><EFBFBD>"
EnableViewState="true" EnableEventValidation="false" %>
<%@ Register Assembly="YYControls" Namespace="YYControls.SmartGridViewAlpha" TagPrefix="yyca" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
<div>
SmartGridViewAlpha
</div>
<div id="divMsg" runat="server" />
<yyca:SmartGridViewAlpha ID="SmartGridViewAlpha1" runat="server" BackColor="White"
BorderColor="#999999" BorderStyle="solid" BorderWidth="1px" CellPadding="3" AutoGenerateColumns="False"
AllowSorting="True" DataSourceID="ObjectDataSource1" Width="1050" CssClassMouseOver="OverRow"
RowDoubleClickButtonID="btnTestRowDoubleClick" OnRowCommand="SmartGridViewAlpha1_RowCommand"
AllowPaging="true" PagingStyle="Default" PageSize="20">

@ -0,0 +1,15 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class SmartGridViewAlpha : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

@ -0,0 +1,15 @@
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="SmartTreeView.aspx.cs" Inherits="SmartTreeView" Title="SmartTreeView测试" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
<div style="float: left; width: 200px;">
SmartTreeView1
<yyc:SmartTreeView ID="stv1" runat="server" AllowCascadeCheckbox="True">
</yyc:SmartTreeView>
</div>
<div>
SmartTreeView2
<yyc:SmartTreeView ID="stv2" runat="server" AllowCascadeCheckbox="True">
</yyc:SmartTreeView>
</div>
<p>

@ -0,0 +1,15 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Text;
public partial class SmartTreeView : System.Web.UI.Page

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!--
注意: 除了手动编辑此文件以外,您还可以使用
Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
“网站”->“Asp.Net 配置”选项。
设置和注释的完整列表在
machine.config.comments 中,该文件通常位于
\Windows\Microsoft.Net\Framework\v2.x\Config 中
-->
<configuration>
<appSettings/>
<connectionStrings/>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

@ -0,0 +1,40 @@
TREEVIEW实现复选联动及GRIDVIEW导出EXCEL
一、源码描述
环境VS2022&nbsp;
二、功能介绍
YYControls应用之TreeView实现复选联动及GridView导出Excel、Word、Text
联动复选框(复选框的全选和取消全选)。选中指定的父复选框,则设置其所有子复选框为选中状态;取消选中指定的父复选框,则设置其所有子复选框为取消选中状态。
如果某父复选框的所有子复选框为均选中状态,则设置该父复选框为选中状态;如果某复选框的所有子复选框至少有一个为取消选中状态,则设置该父复选框为取消选中状态
使用方法设置属性AllowCascadeCheckbox - 是否启用联动复选框功能
YYControls为控件源码Web为应用站点程序所有数据为程序自动调用生成
三、注意事项
ctrl+F5运行即可。
作者: webabcd
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/TreeViewCheck
------------------------------------------------------------------------------------------------
源码服务专家
官网: https://www.51aspx.com
讨论圈: https://club.51aspx.com/
平台声明:
1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用;
2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有;
3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com
4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性;
友情提示:
一般数据库文件默认在 DB_51Aspx 文件夹下
默认账号密码一般均为51Aspx
关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls
{
/// <summary>
/// <20><><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><D6B5>λ<EFBFBD><CEBB>
/// </summary>
public enum AttributeValuePosition
{
/// <summary>
/// <20><>ʼ
/// </summary>
First,

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.Helper
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>Helper
/// </summary>
public partial class Common
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.Helper
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>Helper
/// </summary>
public partial class Common
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Xsl;
using System.Web;
using System.Data;
using System.IO;
namespace YYControls.Helper
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>Helper
/// </summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls.Helper
{
/// <summary>
/// <20><><EFBFBD><EFBFBD>Helper
/// </summary>
//5 1 a s p x.com
public partial class Common
{
/// <summary>
/// <20><EFBFBD><E6BBBB><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
/// </summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.Helper
{
/// <summary>
/// SmartGridView<65><77>Helper
/// </summary>
// 5_1_a_s_p_x.c_o_m
public class SmartGridView

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Web.UI;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("YYControls")]
[assembly: AssemblyDescription("http://webabcd.cnblogs.com")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("http://webabcd.cnblogs.com")]
[assembly: AssemblyProduct("YYControls")]
[assembly: AssemblyCopyright("版权所有 (C) http://webabcd.cnblogs.com 2007")]

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace YYControls.Resources
{
/// <summary>
/// Icon
/// </summary>
public class Icon
{
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
public class CascadeCheckbox
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls.SmartGridViewFunction
{
/// <summary>
/// <20><>չ<EFBFBD><D5B9><EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>򣨸<EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD>ȫѡ<C8AB><D1A1>ȡ<EFBFBD><C8A1>ȫѡ<C8AB><D1A1>
/// </summary>
public class CascadeCheckboxFunction : ExtendFunction
{
/// <summary>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// CascadeCheckbox<6F><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// ע<><D7A2>Ҫ<EFBFBD>̳<EFBFBD><CCB3><EFBFBD>CollectionBase
/// </summary>
[ToolboxItem(false)]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// SmartGridView<65><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>
/// </summary>
public partial class SmartGridView
{
private CascadeCheckboxes _cascadeCheckboxes;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
namespace YYControls
{
/// <summary>
/// <20>е<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>ѡ<EFBFBD><D1A1>ʱ<EFBFBD>ı<EFBFBD><C4B1>е<EFBFBD><D0B5><EFBFBD>ʽʵ<CABD><CAB5><EFBFBD><EFBFBD>
/// </summary>
[ToolboxItem(false)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class CheckedRowCssClass

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save