当前位置: 首页>>代码示例>>C#>>正文


C# Controls.DataGridRowEventArgs类代码示例

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


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


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