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(); }
private void dgrEstate_LoadingRow(object sender, DataGridRowEventArgs e) { e.Row.Header = (e.Row.GetIndex() + 1).ToString(); }
private void DtGrid_LoadingRow(object sender, DataGridRowEventArgs e) { SetRowLogo(DtGrid, e.Row, "T_HR_COMPANY"); }
private void dgAttDedMasSetList_LoadingRow(object sender, DataGridRowEventArgs e) { SetRowLogo(dgAttDedMasSetList, e.Row, "T_HR_ATTENDANCEDEDUCTMASTER"); }
private void dataGrid_LoadingRow(object sender, DataGridRowEventArgs e) { this.Data1.LoadingRow += new EventHandler <DataGridRowEventArgs>(this.dataGrid_LoadingRow); e.Row.Header = e.Row.GetIndex() + 1; }
void DataGrid_LoadingRow(Object sender, DataGridRowEventArgs e) { e.Row.Tag = e.Row.GetIndex(); }
private void DtGrid_LoadingRow(object sender, DataGridRowEventArgs e) { SetRowLogo(DtGrid, e.Row, "T_HR_POSTDICTIONARY"); }
/// <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; }
private void RectangleSelection_UnloadingRow(object sender, DataGridRowEventArgs e) { dataGridRows.Remove(e.Row); }
private void RectangleSelection_LoadingRow(object sender, DataGridRowEventArgs e) { dataGridRows.Add(e.Row); }
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; }
void datagrid_LoadingRow(object sender, DataGridRowEventArgs e) { e.Row.Header = e.Row.GetIndex() + 1; e.Row.Height = 40; }
private void DaGr_LoadingRow(object sender, DataGridRowEventArgs e) { SetRowLogo(DaGr, e.Row, "T_OA_CONTRACTAPP"); }
/// <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); }
private void DtGrid_LoadingRow(object sender, DataGridRowEventArgs e) { SetRowLogo(DtGrid, e.Row, "T_SYS_USERROLE"); }
/// <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); } }
/// <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(); }
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); }
//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; }
private void TableData_LoadingRow(object sender, DataGridRowEventArgs e) { e.Row.Header = e.Row.GetIndex() + 1; }
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}"); }
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(); }
/// <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; }
/// <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); } }
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); }
private static void DataGrid_LoadingRow(object sender, DataGridRowEventArgs e) { // add line number on the grid e.Row.Header = (e.Row.GetIndex() + 1).ToString(); }
//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"); }
private void LoadGrid_LoadingRow(object sender, DataGridRowEventArgs e) { e.Row.Header = " " + (e.Row.GetIndex() + 1) + " "; }
/// <summary> /// Invokes the UnloadingRow event /// </summary> protected virtual void OnUnloadingRow(DataGridRowEventArgs e) { if (UnloadingRow != null) { UnloadingRow(this, e); } var row = e.Row; OnUnloadingRowDetailsWrapper(row); }
private void OnLoadingRow(object sender, DataGridRowEventArgs e) { e.Row.Header = $"{e.Row.GetIndex()}: "; }