• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Controls.DataGridRowEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Controls.DataGridRowEventArgs的典型用法代码示例。如果您正苦于以下问题:C# DataGridRowEventArgs类的具体用法?C# DataGridRowEventArgs怎么用?C# DataGridRowEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DataGridRowEventArgs类属于System.Windows.Controls命名空间,在下文中一共展示了DataGridRowEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: gridAccounts_LoadingRow

        private void gridAccounts_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            e.Row.Header = e.Row.GetIndex() + 1;

            //DataGridCell cell = e.Row.GetCell(0);
            //cell.Content = e.Row.GetIndex() + 1;
        }
开发者ID:dennyli,项目名称:HandySolution,代码行数:7,代码来源:UserManagerView.xaml.cs


示例2: NastilyUpdateRowToAvoidStupidRowRecyclingProblems

 private void NastilyUpdateRowToAvoidStupidRowRecyclingProblems(object sender, DataGridRowEventArgs e)
 {
     foreach (CustomBoundColumn column in _viewModel.QueryResult.Columns)
     {
         column.Update(e.Row);
     }
 }
开发者ID:pedershk,项目名称:dotnetprograms,代码行数:7,代码来源:MainWindow.xaml.cs


示例3: DtGridUsers_LoadingRow

 private void DtGridUsers_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     //SetRowLogo(DtGridUsers, e.Row, "T_SYS_USER");            
     int index = e.Row.GetIndex();
     var cell = DtGridUsers.Columns[0].GetCellContent(e.Row) as TextBlock;
     cell.Text = (index + 1).ToString();
 }
开发者ID:JuRogn,项目名称:OA,代码行数:7,代码来源:AssignUserByRole.xaml.cs


示例4: Grid2_LoadingRow

        private void Grid2_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            Table16x12 rpm_axis_idle = new Table16x12();

            var id = e.Row.GetIndex();
            e.Row.Header = rpm_axis_idle.rpm_idle_axis[id];
        }
开发者ID:razorspb,项目名称:ms43_recalc,代码行数:7,代码来源:MainWindow.xaml.cs


示例5: ProductFiles_LoadingRow

 private void ProductFiles_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     ProjectFilesEntity lprojectFilesEntity = e.Row.DataContext as ProjectFilesEntity;
     if (lprojectFilesEntity.FileDelete)
     {
         e.Row.Background = new SolidColorBrush(Colors.Black);
     }
 }
开发者ID:YHTechnology,项目名称:ProjectManager,代码行数:8,代码来源:ProductManager.xaml.cs


示例6: dg_LoadingRow

 private void dg_LoadingRow(object sender, DataGridRowEventArgs e)//点击回车新加载一行
 {
     T_OA_SATISFACTIONDETAIL temp = (T_OA_SATISFACTIONDETAIL)e.Row.DataContext;
     ImageButton MyButton_Delbaodao = dg.Columns[3].GetCellContent(e.Row).FindName("myDelete") as ImageButton;
     MyButton_Delbaodao.Margin = new Thickness(0);
     MyButton_Delbaodao.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/ToolBar/ico_16_delete.png", Utility.GetResourceStr("DELETE"));
     MyButton_Delbaodao.Tag = temp;
 }
开发者ID:JuRogn,项目名称:OA,代码行数:8,代码来源:SatisfactionsChildWindow.xaml.cs


示例7: DataGrid1_LoadingRow

        private void DataGrid1_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            T_Model bindData = (T_Model)e.Row.DataContext;
            Button btn = DataGrid1.Columns[2].GetCellContent(e.Row).FindName("Button1") as Button;
            btn.Tag = bindData.id;

            btn = DataGrid1.Columns[3].GetCellContent(e.Row).FindName("btn_Del") as Button;
            btn.Tag = bindData.id;
        }
开发者ID:ichari,项目名称:ichari,代码行数:9,代码来源:ModelManage.xaml.cs


示例8: InvoicesDG_LoadingRow

        private void InvoicesDG_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            DataGridRow dataGridrow = DataGridRow.GetRowContainingElement(e.Row);

        //    Hyperlink edit = colIssue").GetCellContent(dataGridrow) as Hyperlink;
        //    edit.Content = _messageResolver.GetText("sl.creditnote.invoicelist.grid.col.issue.text");
        //    HyperlinkButton deactivate = colViewInvoice").GetCellContent(dataGridrow) as HyperlinkButton;
        //    deactivate.Content = _messageResolver.GetText("sl.creditnote.invoicelist.grid.col.view.text");
        }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:9,代码来源:ListInvoices.xaml.cs


示例9: gridProducts_LoadingRow

        private void gridProducts_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            Product product = (Product)e.Row.DataContext;
            if (product.UnitCost > 100)
                e.Row.Background = highlightBrush;
            else
                e.Row.Background = normalBrush;

        }
开发者ID:ittray,项目名称:LocalDemo,代码行数:9,代码来源:DataGridTest.xaml.cs


示例10: dgPlayType_P_LoadingRow

 private void dgPlayType_P_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     (dgPlayType_P.Columns[0].GetCellContent(e.Row) as TextBlock).Text = (e.Row.GetIndex() + 1).ToString();
     (dgPlayType_P.Columns[6].GetCellContent(e.Row) as Button).Tag = e.Row.DataContext;
     PlayTypeRadioInfo playType =e.Row.DataContext as PlayTypeRadioInfo;
     if (playType.Multiple == 1000)
         (dgPlayType_P.Columns[5].GetCellContent(e.Row) as TextBlock).Text = "固定返点";
     else
         (dgPlayType_P.Columns[5].GetCellContent(e.Row) as TextBlock).Text = (e.Row.DataContext as PlayTypeRadioInfo).MinScale.ToString();
 }
开发者ID:dalinhuang,项目名称:my-un-code,代码行数:10,代码来源:LotteryBonus.xaml.cs


示例11: DataGridAPARLoadingRow

 private void DataGridAPARLoadingRow(object sender, DataGridRowEventArgs e)
 {
     var item = e.Row.DataContext as DeliveryLine;
     if (item != null)
     {
         if (item.Id == 0)
         {
             e.Row.Foreground = Brushes.Red;
         }
     }
 }
开发者ID:jesusblessf6,项目名称:senlan2,代码行数:11,代码来源:InventoryReportHome.xaml.cs


示例12: OnLoadingRow

        /// <summary>
        /// System.Windows.Controls.DataGrid.LoadingRow イベントを発生させる。
        /// </summary>
        /// <param name="e">イベントのデータ。</param>
        protected override void OnLoadingRow(DataGridRowEventArgs e)
        {
            base.OnLoadingRow(e);

            DataGridRow row = e.Row;

            // DataGridRowにダブルクリック検知用イベントハンドラを追加する。
            row.MouseLeftButtonUp -= new MouseButtonEventHandler(this.Row_MouseLeftButtonUp);
            row.MouseLeftButtonUp += new MouseButtonEventHandler(this.Row_MouseLeftButtonUp);

        }
开发者ID:salesInnovation,项目名称:SalesInnovation,代码行数:15,代码来源:ExDataGrid.cs


示例13: dataGrid_LoadingRow

	    private void dataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
	    {
		    // Get the DataRow corresponding to the DataGridRow that is loading.
		    DataGridRow row = e.Row;
		    var log = (SystemJobLogEntry) row.Item;
			if (log.Message != null)
		    {
			    e.Row.Background = new SolidColorBrush(Colors.LightPink);
				e.Row.ToolTip = log.Message;
		    }
	    }
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:11,代码来源:SystemJobEditLogView.xaml.cs


示例14: dgMain_LoadingRow

        // загрузка строк
        // происходит форматирование строк в зависимости от цены автомобиля!
        private void dgMain_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            if (!(e.Row.DataContext is Car)) return;

            Car car = (Car)e.Row.DataContext;

            if (car.Price > 15000)
                e.Row.Foreground = new SolidColorBrush(Colors.Red);
            else
                e.Row.Foreground = new SolidColorBrush(Colors.Blue);
        }
开发者ID:irinalesina,项目名称:ITStepProjects,代码行数:13,代码来源:MainWindow.xaml.cs


示例15: dgMain_LoadingRow

 private void dgMain_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     dgMain.Columns[0].Width = new DataGridLength(0.2, DataGridLengthUnitType.Star);
     dgMain.Columns[1].Width = new DataGridLength(0.3, DataGridLengthUnitType.Star);
     dgMain.Columns[2].Width = new DataGridLength(0.3, DataGridLengthUnitType.Star);
     dgMain.Columns[3].Width = new DataGridLength(0.3, DataGridLengthUnitType.Star);
     dgMain.Columns[4].Width = new DataGridLength(0.3, DataGridLengthUnitType.Star);
     dgMain.Columns[5].Width = new DataGridLength(0.6, DataGridLengthUnitType.Star);
     dgMain.Columns[6].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
     dgMain.Columns[7].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
     dgMain.Columns[8].Width = new DataGridLength(0.3, DataGridLengthUnitType.Star);
 }
开发者ID:dalinhuang,项目名称:ChargeLeaderSystem,代码行数:12,代码来源:UCHisBlock.xaml.cs


示例16: DataGrid_LoadingRow

        private void DataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            var answer = e.Row.DataContext as MRZS.Web.Models.Answer;

            var answersStatisticViewModel = (sender as DataGrid).DataContext as AnswersStatisticViewModel;
            if (answersStatisticViewModel.ResultAnswers.Any(ra => ra.AnswerId == answer.AnswerId && answer.IsCorrect))
            {
                e.Row.Foreground = new SolidColorBrush(Colors.Green);
            }
            else if (answersStatisticViewModel.ResultAnswers.Any(ra => ra.AnswerId == answer.AnswerId && !answer.IsCorrect))
            {
                e.Row.Foreground = new SolidColorBrush(Colors.Red);
            }
        }
开发者ID:k0stya,项目名称:quizApp,代码行数:14,代码来源:UserStatistic.xaml.cs


示例17: RefreshRowNumbers

        }//end OnRowNumbersChanged

        /// <summary>
        /// Event handler that handles refreshing the row numbers in the row headers.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private static void RefreshRowNumbers(object sender, DataGridRowEventArgs args)
        {
            var grid = sender as ExtendedDataGrid;
            if (grid == null)
                return;
            if (grid.IsGroupByOn)
                return;
            foreach (var item in grid.Items)
            {
                var row = (DataGridRow)grid.ItemContainerGenerator.ContainerFromItem(item);
                if (row != null && row.GetIndex()!=-1)
                    row.Header = (row.GetIndex() + 1).ToString();
            }
        }//end RefreshRowNumbers
开发者ID:MuhammadUsmaann,项目名称:Education-System-Desktop-App,代码行数:21,代码来源:DataGridBehavior.cs


示例18: dataGrid1_LoadingRow

        private void dataGrid1_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            DataGridRow row = e.Row;

            Tarea t = row.Item as Tarea; // Similar a (Tarea)row.Item

            if (!t.Realizado && t.FechaVencimiento < DateTime.Now)
            {
                row.Background = new SolidColorBrush(Colors.Red);
            }
            else if (t.Realizado)
            {
                row.Background = new SolidColorBrush(Colors.LightGreen);
            }       
        }
开发者ID:UNAH-SISTEMAS,项目名称:2015.3.oop,代码行数:15,代码来源:MainWindow.xaml.cs


示例19: DaGr_LoadingRow

 private void DaGr_LoadingRow(object sender, DataGridRowEventArgs e)
 {
     if (houseInfoList.Count() > 0)
     {
         houseObj = (T_OA_HOUSEINFO)e.Row.DataContext;
         var entity = from q in houseInfoList
                      where q.HOUSEID == houseObj.HOUSEID
                      select q;
         if (entity.Count() > 0)
         {
             CheckBox chkbox = DaGr.Columns[0].GetCellContent(e.Row).FindName("myChkBox") as CheckBox;
             chkbox.IsChecked = true;
         }
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:15,代码来源:HouseInfoChooseForm.xaml.cs


示例20: dgDispatch_LoadingRow

        void dgDispatch_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            BookingDispatching ds = (e.Row.DataContext) as BookingDispatching;
            string status = ds.Status.ToString();

            if (ds.Status == DispatchingStatus.Waiting)
                e.Row.Background = new SolidColorBrush(Colors.Yellow);
                
            else if (status.ToString() == DispatchStatusOption.Dispatch.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Magenta);
            }
            else if (status.ToString() == DispatchStatusOption.ChangePending.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Yellow);
            }
            else if (status.ToString() == DispatchStatusOption.Completed.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Blue);
            }
            else if (status.ToString() == DispatchStatusOption.Assigned.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Purple);
            }
            else if (status.ToString() == DispatchStatusOption.DropOff.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Orange);

            }
            else if (status.ToString() == DispatchStatusOption.InTransit.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Green);
            }
            else if (status.ToString() == DispatchStatusOption.LateCancel.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Red);
            }
            else if (status.ToString() == DispatchStatusOption.Pending.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Cyan);
            }
            else if (status.ToString() == DispatchStatusOption.PreAssigned.ToString())
            {
                e.Row.Background = new SolidColorBrush(Colors.Brown);
            }

        }
开发者ID:felixthehat,项目名称:Limo,代码行数:47,代码来源:ReservationsView.xaml.cs



注:本文中的System.Windows.Controls.DataGridRowEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Controls.DataGridTextColumn类代码示例发布时间:2022-05-26
下一篇:
C# Controls.DataGridRow类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap