private void grid_LoadedRowHeaderPresenter(object sender, DataGridRowEventArgs e)
 {
     var storyBoard = new Storyboard();
     var animation = new DoubleAnimation() { Duration = TimeSpan.FromMilliseconds(200) };
     Storyboard.SetTarget(animation, e.Row.HeaderPresenter);
     Storyboard.SetTargetProperty(animation, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.Y)"));
     storyBoard.Children.Add(animation);
     e.Row.HeaderPresenter.Tag = storyBoard;
     e.Row.HeaderPresenter.RenderTransform = new TranslateTransform();
 }
Exemplo n.º 2
0
 private void dgrEstate_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = (e.Row.GetIndex() + 1).ToString();
 }
Exemplo n.º 3
0
 private void DtGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     SetRowLogo(DtGrid, e.Row, "T_HR_COMPANY");
 }
Exemplo n.º 4
0
 private void dgAttDedMasSetList_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     SetRowLogo(dgAttDedMasSetList, e.Row, "T_HR_ATTENDANCEDEDUCTMASTER");
 }
Exemplo n.º 5
0
 private void dataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     this.Data1.LoadingRow += new EventHandler <DataGridRowEventArgs>(this.dataGrid_LoadingRow);
     e.Row.Header           = e.Row.GetIndex() + 1;
 }
Exemplo n.º 6
0
 void DataGrid_LoadingRow(Object sender, DataGridRowEventArgs e)
 {
     e.Row.Tag = e.Row.GetIndex();
 }
Exemplo n.º 7
0
 private void DtGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     SetRowLogo(DtGrid, e.Row, "T_HR_POSTDICTIONARY");
 }
Exemplo n.º 8
0
 /// <summary>
 /// Puts line numbers in the row header
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void HandleLoadingRow(object sender, DataGridRowEventArgs e)
 {
     //e.Row.Header = e.Row.GetIndex() + 1;
 }
Exemplo n.º 9
0
 private void RectangleSelection_UnloadingRow(object sender, DataGridRowEventArgs e)
 {
     dataGridRows.Remove(e.Row);
 }
Exemplo n.º 10
0
 private void RectangleSelection_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     dataGridRows.Add(e.Row);
 }
Exemplo n.º 11
0
 private void Indexiranje(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = (e.Row.GetIndex()).ToString();
 }
 private void QueryDetailsDataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.MouseEnter += Row_MouseEnter;
     e.Row.MouseLeave += Row_MouseLeave;
 }
Exemplo n.º 13
0
 void datagrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = e.Row.GetIndex() + 1;
     e.Row.Height = 40;
 }
Exemplo n.º 14
0
 private void DaGr_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     SetRowLogo(DaGr, e.Row, "T_OA_CONTRACTAPP");
 }
Exemplo n.º 15
0
        /// <summary>
        ///     Invokes the UnloadingRow event
        /// </summary>
        protected virtual void OnUnloadingRow(DataGridRowEventArgs e)
        {
            if (UnloadingRow != null)
            {
                UnloadingRow(this, e);
            }

            var row = e.Row;
            if (row.DetailsEventStatus == DataGridRow.RowDetailsEventStatus.Loaded && row.DetailsPresenter != null)
            {
                OnUnloadingRowDetails(new DataGridRowDetailsEventArgs(row, row.DetailsPresenter.DetailsElement));
            }
        }
		/// <summary>
		/// When a DataGridRow scrolls into view this method is invoked. A binding
		/// relationship is established between the DataGridRow.IsSelected property
		/// and the Graphic.Selected property.
		/// </summary>		
		protected override void OnLoadingRow(DataGridRowEventArgs e)
		{
#if !SILVERLIGHT
			Graphic graphic = e.Row.DataContext as Graphic;
			if (graphic != null)
				e.Row.IsSelected = graphic.Selected;
#endif
			e.Row.MouseLeftButtonUp += new MouseButtonEventHandler(DataGridRow_MouseLeftButtonUp);
			base.OnLoadingRow(e);
		}
Exemplo n.º 17
0
 private void DtGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     SetRowLogo(DtGrid, e.Row, "T_SYS_USERROLE");
 }
Exemplo n.º 18
0
        /// <summary>
        ///     Invokes the LoadingRow event
        /// </summary>
        protected virtual void OnLoadingRow(DataGridRowEventArgs e)
        {
            if (LoadingRow != null)
            {
                LoadingRow(this, e);
            }

            var row = e.Row;
            if (row.DetailsVisibility == Visibility.Visible && row.DetailsPresenter != null)
            {
                // Invoke LoadingRowDetails, but only after the details template is expanded (so DetailsElement will be available).
                Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row);
            }
        }
Exemplo n.º 19
0
 /// <summary>
 /// Handles the LoadingRow event of the dgTestCases control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="DataGridRowEventArgs"/> instance containing the event data.</param>
 private void dgTestCases_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     // Adding 1 to make the row count start at 1 instead of 0
     // as pointed out by daub815
     e.Row.Header = (e.Row.GetIndex() + 1).ToString();
 }
Exemplo n.º 20
0
 private void SeqTrack_DataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = (e.Row.GetIndex()).ToString();
 }
 void dgTorrents_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.MouseRightButtonDown += new MouseButtonEventHandler(Row_MouseRightButtonDown);
 }
Exemplo n.º 22
0
 //Datagrid loadingrow
 private void dgSanPhamNhapMua_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = (e.Row.GetIndex() + 1).ToString();
 }
        public void OnLoadingRow(DataGridRowEventArgs e)
        {
            var role = e.Row.DataContext as SystemRole;

            e.Row.IsEnabled = !role.IsDefaultRole;
        }
Exemplo n.º 24
0
 private void TableData_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = e.Row.GetIndex() + 1;
 }
Exemplo n.º 25
0
 private void DtGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     SetRowLogo(DtGrid, e.Row, "T_HR_SALARYSOLUTIONASSIGN");
 }
        private void AddAutomationIdToRowHandler(object sender, DataGridRowEventArgs e)
        {
            var rowIndex = e.Row.GetIndex();

            e.Row.SetValue(AutomationProperties.AutomationIdProperty, $"DG:{dataGridAutomationId}|R:{rowIndex}");
        }
Exemplo n.º 27
0
 private void DaGr_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     SetRowLogo(DaGr, e.Row, "T_OA_AGENTSET");
 }
 private void LoadingRow(object sender, DataGridRowEventArgs e)
 {
 }
 private void DgConstructionSiteDocuments_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = (e.Row.GetIndex() + 1).ToString();
 }
Exemplo n.º 30
0
        /// <summary>
        ///     Invokes the LoadingRow event
        /// </summary>
        protected virtual void OnLoadingRow(DataGridRowEventArgs e)
        {
            if (LoadingRow != null)
            {
                LoadingRow(this, e);
            }

            var row = e.Row;
            if (row.DetailsVisibility == Visibility.Visible && row.DetailsPresenter != null)
            {
                // Invoke LoadingRowDetails, but only after the details template is expanded (so DetailsElement will be available).
                // We dont want changes to DetailsVisibilty to fire the event before this dispatcher operation fires, so we disable it.
                row.DetailsEventStatus = DataGridRow.RowDetailsEventStatus.Disabled;
                Dispatcher.CurrentDispatcher.BeginInvoke(new DispatcherOperationCallback(DelayedOnLoadingRowDetails), DispatcherPriority.Loaded, row);
            }
        }
 private void dataGridView_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Loaded += row_Loaded;
 }
Exemplo n.º 32
0
 /// <summary>
 /// Raises the PreparingRow event for row preparation. 
 /// </summary>
 protected virtual void OnPreparingRow(DataGridRowEventArgs e)
 { 
     EventHandler<DataGridRowEventArgs> handler = this.PreparingRow;
     if (handler != null)
     { 
         Debug.Assert(!this._preparedRows.Contains(e.Row)); 
         this._preparedRows.Add(e.Row);
         handler(this, e); 
         Debug.Assert(this._preparedRows.Contains(e.Row));
         this._preparedRows.Remove(e.Row);
     } 
 }
Exemplo n.º 33
0
 private void dg_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     SetRowLogo(dg, e.Row, "T_OA_VEHICLE");
 }
		/// <summary>
		/// Unloads the row when it scrolls out of view. 
		/// </summary>
		/// <param name="e">The data for the event.</param>
		protected override void OnUnloadingRow(DataGridRowEventArgs e)
		{
			e.Row.MouseLeftButtonDown -= new MouseButtonEventHandler(DataGridRow_MouseLeftButtonUp);
			base.OnUnloadingRow(e);
		}
Exemplo n.º 35
0
 private static void DataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     // add line number on the grid
     e.Row.Header = (e.Row.GetIndex() + 1).ToString();
 }
Exemplo n.º 36
0
        //void webClient_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
        //{
        //    //声明一个UserInfo类型的DataContractJsonSerializer实例
        //    DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(UserInfo));

        //    //获取JSON数据流的信息,并将它转换成为UserInfo实例
        //    UserInfo userInfo = (UserInfo)serializer.ReadObject(e.Result);//e.Result为JSON流数据

        //    //下面显示userInfo中的数据信息
        //    UserList.Items.Add(string.Format("Name:{0}, Address:{1}, Age:{2}, IsMember:{3} ",
        //        userInfo.Name,
        //        userInfo.Address,
        //        userInfo.Age,
        //        userInfo.IsMember));
        //}

        /// <summary>
        /// 首列加载图片
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dgAttSolAsignList_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            SetRowLogo(dgAttSolAsignList, e.Row, "T_HR_NOATTENDCARDEMPLOYEES");
        }
Exemplo n.º 37
0
 private void LoadGrid_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = "  " + (e.Row.GetIndex() + 1) + "  ";
 }
Exemplo n.º 38
0
        /// <summary>
        ///     Invokes the UnloadingRow event
        /// </summary>
        protected virtual void OnUnloadingRow(DataGridRowEventArgs e)
        {
            if (UnloadingRow != null)
            {
                UnloadingRow(this, e);
            }

            var row = e.Row;
            OnUnloadingRowDetailsWrapper(row);
        }
Exemplo n.º 39
0
 private void OnLoadingRow(object sender, DataGridRowEventArgs e)
 {
     e.Row.Header = $"{e.Row.GetIndex()}: ";
 }