Trouver un fichier de code source :
   

Version Française - English Version
Accueil > 

ASP

 > 

GRIDVIEW WITH TREEVIEW AND CALLBACK

 > 

WindowsControlLibrary1/WebApplication2/Datas/MyDatas.designer.cs


GRIDVIEW WITH TREEVIEW AND CALLBACK

WindowsControlLibrary1/WebApplication2/Datas/MyDatas.designer.cs


Informations sur ce code source

Cliquez pour voir la capture en taille normale
Code Source GRIDVIEW WITH TREEVIEW AND CALLBACK
Auteur fredzool
Fichier WindowsControlLibrary1/WebApplication2/Datas/MyDatas.designer.cs en ASP / ASP.NET
Publié le 01/05/2010
Mis à jour le 01/05/2010

Voici un gridview qui contient un tree view pour plier et deplier les lignes il faut que dans la source de donnee il y ai un colonne expandable, qui definit que cette ligne a des enfants il faut egalement un colonne level qui definit le niveau hi
 

Fichier : WindowsControlLibrary1/WebApplication2/Datas/MyDatas.designer.cs

Nombre de lignes : 305 lignes


Afficher ce fichier en plein écran
  • #pragma warning disable 1591
  • //------------------------------------------------------------------------------
  • // <auto-generated>
  • // This code was generated by a tool.
  • // Runtime Version:2.0.50727.3603
  • //
  • // Changes to this file may cause incorrect behavior and will be lost if
  • // the code is regenerated.
  • // </auto-generated>
  • //------------------------------------------------------------------------------
  • namespace WebApplication2.Datas
  • {
  • using System.Data.Linq;
  • using System.Data.Linq.Mapping;
  • using System.Data;
  • using System.Collections.Generic;
  • using System.Reflection;
  • using System.Linq;
  • using System.Linq.Expressions;
  • using System.ComponentModel;
  • using System;
  • [System.Data.Linq.Mapping.DatabaseAttribute(Name="DB2008")]
  • public partial class MyDatasDataContext : System.Data.Linq.DataContext
  • {
  • private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  • #region Extensibility Method Definitions
  • partial void OnCreated();
  • partial void InsertOrganization(Organization instance);
  • partial void UpdateOrganization(Organization instance);
  • partial void DeleteOrganization(Organization instance);
  • #endregion
  • public MyDatasDataContext() :
  • base(global::System.Configuration.ConfigurationManager.ConnectionStrings["DB2008ConnectionString"].ConnectionString, mappingSource)
  • {
  • OnCreated();
  • }
  • public MyDatasDataContext(string connection) :
  • base(connection, mappingSource)
  • {
  • OnCreated();
  • }
  • public MyDatasDataContext(System.Data.IDbConnection connection) :
  • base(connection, mappingSource)
  • {
  • OnCreated();
  • }
  • public MyDatasDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  • base(connection, mappingSource)
  • {
  • OnCreated();
  • }
  • public MyDatasDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  • base(connection, mappingSource)
  • {
  • OnCreated();
  • }
  • public System.Data.Linq.Table<Organization> Organizations
  • {
  • get
  • {
  • return this.GetTable<Organization>();
  • }
  • }
  • }
  • [Table(Name="dbo.Organization")]
  • public partial class Organization : INotifyPropertyChanging, INotifyPropertyChanged
  • {
  • private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  • private int _OrganizationId;
  • private string _Name;
  • private System.Nullable<int> _ParentId;
  • private System.Nullable<bool> _Expandable;
  • private System.Nullable<int> _Level;
  • private EntitySet<Organization> _Organizations;
  • private EntityRef<Organization> _Organization1;
  • #region Extensibility Method Definitions
  • partial void OnLoaded();
  • partial void OnValidate(System.Data.Linq.ChangeAction action);
  • partial void OnCreated();
  • partial void OnOrganizationIdChanging(int value);
  • partial void OnOrganizationIdChanged();
  • partial void OnNameChanging(string value);
  • partial void OnNameChanged();
  • partial void OnParentIdChanging(System.Nullable<int> value);
  • partial void OnParentIdChanged();
  • partial void OnExpandableChanging(System.Nullable<bool> value);
  • partial void OnExpandableChanged();
  • partial void OnLevelChanging(System.Nullable<int> value);
  • partial void OnLevelChanged();
  • #endregion
  • public Organization()
  • {
  • this._Organizations = new EntitySet<Organization>(new Action<Organization>(this.attach_Organizations), new Action<Organization>(this.detach_Organizations));
  • this._Organization1 = default(EntityRef<Organization>);
  • OnCreated();
  • }
  • [Column(Storage="_OrganizationId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  • public int OrganizationId
  • {
  • get
  • {
  • return this._OrganizationId;
  • }
  • set
  • {
  • if ((this._OrganizationId != value))
  • {
  • this.OnOrganizationIdChanging(value);
  • this.SendPropertyChanging();
  • this._OrganizationId = value;
  • this.SendPropertyChanged("OrganizationId");
  • this.OnOrganizationIdChanged();
  • }
  • }
  • }
  • [Column(Storage="_Name", DbType="VarChar(255)")]
  • public string Name
  • {
  • get
  • {
  • return this._Name;
  • }
  • set
  • {
  • if ((this._Name != value))
  • {
  • this.OnNameChanging(value);
  • this.SendPropertyChanging();
  • this._Name = value;
  • this.SendPropertyChanged("Name");
  • this.OnNameChanged();
  • }
  • }
  • }
  • [Column(Storage="_ParentId", DbType="Int")]
  • public System.Nullable<int> ParentId
  • {
  • get
  • {
  • return this._ParentId;
  • }
  • set
  • {
  • if ((this._ParentId != value))
  • {
  • if (this._Organization1.HasLoadedOrAssignedValue)
  • {
  • throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  • }
  • this.OnParentIdChanging(value);
  • this.SendPropertyChanging();
  • this._ParentId = value;
  • this.SendPropertyChanged("ParentId");
  • this.OnParentIdChanged();
  • }
  • }
  • }
  • [Column(Storage="_Expandable", DbType="Bit")]
  • public System.Nullable<bool> Expandable
  • {
  • get
  • {
  • return this._Expandable;
  • }
  • set
  • {
  • if ((this._Expandable != value))
  • {
  • this.OnExpandableChanging(value);
  • this.SendPropertyChanging();
  • this._Expandable = value;
  • this.SendPropertyChanged("Expandable");
  • this.OnExpandableChanged();
  • }
  • }
  • }
  • [Column(Name="[Level]", Storage="_Level", DbType="Int")]
  • public System.Nullable<int> Level
  • {
  • get
  • {
  • return this._Level;
  • }
  • set
  • {
  • if ((this._Level != value))
  • {
  • this.OnLevelChanging(value);
  • this.SendPropertyChanging();
  • this._Level = value;
  • this.SendPropertyChanged("Level");
  • this.OnLevelChanged();
  • }
  • }
  • }
  • [Association(Name="Organization_Organization", Storage="_Organizations", ThisKey="OrganizationId", OtherKey="ParentId")]
  • public EntitySet<Organization> Organizations
  • {
  • get
  • {
  • return this._Organizations;
  • }
  • set
  • {
  • this._Organizations.Assign(value);
  • }
  • }
  • [Association(Name="Organization_Organization", Storage="_Organization1", ThisKey="ParentId", OtherKey="OrganizationId", IsForeignKey=true)]
  • public Organization Organization1
  • {
  • get
  • {
  • return this._Organization1.Entity;
  • }
  • set
  • {
  • Organization previousValue = this._Organization1.Entity;
  • if (((previousValue != value)
  • || (this._Organization1.HasLoadedOrAssignedValue == false)))
  • {
  • this.SendPropertyChanging();
  • if ((previousValue != null))
  • {
  • this._Organization1.Entity = null;
  • previousValue.Organizations.Remove(this);
  • }
  • this._Organization1.Entity = value;
  • if ((value != null))
  • {
  • value.Organizations.Add(this);
  • this._ParentId = value.OrganizationId;
  • }
  • else
  • {
  • this._ParentId = default(Nullable<int>);
  • }
  • this.SendPropertyChanged("Organization1");
  • }
  • }
  • }
  • public event PropertyChangingEventHandler PropertyChanging;
  • public event PropertyChangedEventHandler PropertyChanged;
  • protected virtual void SendPropertyChanging()
  • {
  • if ((this.PropertyChanging != null))
  • {
  • this.PropertyChanging(this, emptyChangingEventArgs);
  • }
  • }
  • protected virtual void SendPropertyChanged(String propertyName)
  • {
  • if ((this.PropertyChanged != null))
  • {
  • this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  • }
  • }
  • private void attach_Organizations(Organization entity)
  • {
  • this.SendPropertyChanging();
  • entity.Organization1 = this;
  • }
  • private void detach_Organizations(Organization entity)
  • {
  • this.SendPropertyChanging();
  • entity.Organization1 = null;
  • }
  • }
  • }
  • #pragma warning restore 1591


Liste des fichiers du ZIP

FichierTaille
WindowsControlLibrary1/UpgradeLog.XML7,96 Ko
WindowsControlLibrary1/Web.config7,66 Ko
WindowsControlLibrary1/WebApplication2/Datas/CreationScript.sql3,74 Ko
WindowsControlLibrary1/WebApplication2/Datas/MyDatas.dbml1,36 Ko
WindowsControlLibrary1/WebApplication2/Datas/MyDatas.dbml.layout1,27 Ko
WindowsControlLibrary1/WebApplication2/Datas/MyDatas.designer.cs7,84 Ko
WindowsControlLibrary1/WebApplication2/Datas/myDatas.xml1,37 Ko
WindowsControlLibrary1/WebApplication2/Default.aspx3,25 Ko
WindowsControlLibrary1/WebApplication2/Default.aspx.cs2,72 Ko
WindowsControlLibrary1/WebApplication2/Default.aspx.designer.cs6,39 Ko
WindowsControlLibrary1/WebApplication2/GridTreeView.aspx2,05 Ko
WindowsControlLibrary1/WebApplication2/GridTreeView.aspx.cs3,65 Ko
WindowsControlLibrary1/WebApplication2/GridTreeView.aspx.designer.cs1,45 Ko
WindowsControlLibrary1/WebApplication2/Images/Blue.gif1,15 Ko
WindowsControlLibrary1/WebApplication2/Images/minus.gif856 o
WindowsControlLibrary1/WebApplication2/Images/plus.gif868 o
WindowsControlLibrary1/WebApplication2/Images/railroad.gif843 o
WindowsControlLibrary1/WebApplication2/Images/Thumbs.db6,5 Ko
WindowsControlLibrary1/WebApplication2/MyCallbackTests.aspx2,24 Ko
WindowsControlLibrary1/WebApplication2/MyCallbackTests.aspx.cs2,79 Ko
WindowsControlLibrary1/WebApplication2/MyCallbackTests.aspx.designer.cs2,42 Ko
WindowsControlLibrary1/WebApplication2/PourOdile.aspx1,21 Ko
WindowsControlLibrary1/WebApplication2/PourOdile.aspx.cs1,39 Ko
WindowsControlLibrary1/WebApplication2/PourOdile.aspx.designer.cs1,81 Ko
WindowsControlLibrary1/WebApplication2/Properties/AssemblyInfo.cs1,5 Ko
WindowsControlLibrary1/WebApplication2/Properties/Resources.Designer.cs2,79 Ko
WindowsControlLibrary1/WebApplication2/Properties/Resources.resx4,32 Ko
WindowsControlLibrary1/WebApplication2/Web.config7,54 Ko
WindowsControlLibrary1/WebApplication2/WebApplication2.csproj7,99 Ko
WindowsControlLibrary1/WebApplication2/WebApplication2.csproj.user1,26 Ko
WindowsControlLibrary1/WebApplication2/WebForm1.aspx1,65 Ko
WindowsControlLibrary1/WebApplication2/WebForm1.aspx.cs767 o
WindowsControlLibrary1/WebApplication2/WebForm1.aspx.designer.cs3,11 Ko
WindowsControlLibrary1/WebApplication2/WebForm2.aspx3,84 Ko
WindowsControlLibrary1/WebApplication2/WebForm2.aspx.cs3,22 Ko
WindowsControlLibrary1/WebApplication2/WebForm2.aspx.designer.cs3,4 Ko
WindowsControlLibrary1/WebControlLibrary1/cal/calendar.gif1,17 Ko
WindowsControlLibrary1/WebControlLibrary1/cal/close.gif106 o
WindowsControlLibrary1/WebControlLibrary1/cal/divider.gif49 o
WindowsControlLibrary1/WebControlLibrary1/cal/drop1.gif856 o
WindowsControlLibrary1/WebControlLibrary1/cal/drop2.gif877 o
WindowsControlLibrary1/WebControlLibrary1/cal/left1.gif850 o
WindowsControlLibrary1/WebControlLibrary1/cal/left2.gif864 o
WindowsControlLibrary1/WebControlLibrary1/cal/popcalendar.css3,18 Ko
WindowsControlLibrary1/WebControlLibrary1/cal/popcalendar.js23,13 Ko
WindowsControlLibrary1/WebControlLibrary1/cal/right1.gif851 o
WindowsControlLibrary1/WebControlLibrary1/cal/right2.gif862 o
WindowsControlLibrary1/WebControlLibrary1/cal/up2.gif112 o
WindowsControlLibrary1/WebControlLibrary1/cal/vssver.scc240 o
WindowsControlLibrary1/WebControlLibrary1/CallBackButton.cs3,63 Ko
WindowsControlLibrary1/WebControlLibrary1/CustomButton.cs2,2 Ko
WindowsControlLibrary1/WebControlLibrary1/CustomDatePicker.cs10,03 Ko
WindowsControlLibrary1/WebControlLibrary1/CustomImageButton.cs1,75 Ko
WindowsControlLibrary1/WebControlLibrary1/DatePickerTextBox.cs4,79 Ko
WindowsControlLibrary1/WebControlLibrary1/Images/minus.gif856 o
WindowsControlLibrary1/WebControlLibrary1/Images/plus.gif868 o
WindowsControlLibrary1/WebControlLibrary1/Javascripts/CallBackScripts.js255 o
WindowsControlLibrary1/WebControlLibrary1/Javascripts/IsNumeric.js1,31 Ko
WindowsControlLibrary1/WebControlLibrary1/Javascripts/Money.js1,41 Ko
WindowsControlLibrary1/WebControlLibrary1/Javascripts/TreeViewButton.js2,72 Ko
WindowsControlLibrary1/WebControlLibrary1/MoneyTextBox.cs5,11 Ko
WindowsControlLibrary1/WebControlLibrary1/MoneyTextBoxWithoutJs.cs4,22 Ko
WindowsControlLibrary1/WebControlLibrary1/NumericTextBox.cs4,62 Ko
WindowsControlLibrary1/WebControlLibrary1/Properties/AssemblyInfo.cs3,06 Ko
WindowsControlLibrary1/WebControlLibrary1/TreeViewButton.cs6,38 Ko
WindowsControlLibrary1/WebControlLibrary1/WebControlLibrary1.csproj5,32 Ko
WindowsControlLibrary1/WebControlLibrary1/WebControlLibrary1.csproj.user486 o
WindowsControlLibrary1/WindowsControlLibrary1.sln2,59 Ko
WindowsControlLibrary1/WindowsControlLibrary1.suo71,5 Ko

Pour télécharger le zip au complet, veuillez vous rendre sur cette page :
Télécharger GRIDVIEW WITH TREEVIEW AND CALLBACK


Sources du même auteur ayant un ZIP


Voir la suite...


Sources du même langage comportant un zip


Voir la suite...





Softwares to download (FR)...

  • Easy-Planning (4.5.0.11)
    Easy-Planning (4.5.0.11)
    Easy-Planning permet de créer des plannings sous la représentation de diagrammes et est adapté aux petites et moyennes entreprises(PME). Easy-Planning permet la création de plannings prévisionnels, p...
  • CVEasy (3.1.0.51)
    CVEasy (3.1.0.51)
    PHMSD-CVEasy est un logiciel d'aide à la rédaction de CV d'une simplicité déconcertante. PHMSD-CVEasy vous assistera pour la rédaction de votre CV, le CV de vos amis ou de membres de votre famille, m...
  • LettresFaciles 2011 (8.6.0.31)
    LettresFaciles 2011 (8.6.0.31)
    LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types. Son interface simple d'utilisation mais suffisamment complète vous permettra de créer une multitude de lettres....

Sondage...

Le top des photos

Photo ??Photo ???????????????
Photo ????????Photo ????????
 

Développement réalisé par Nicolas SOREL (Nix) et Emmanuel (EBArtSoft) avec l'aide de Cyril DURAND, Merci à Vincent pour ses précieux conseils
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés
Temps d'éxécution de la page : 0,92 sec