本文整理汇总了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;
}
示例2: NastilyUpdateRowToAvoidStupidRowRecyclingProblems
private void NastilyUpdateRowToAvoidStupidRowRecyclingProblems(object sender, DataGridRowEventArgs e)
{
foreach (CustomBoundColumn column in _viewModel.QueryResult.Columns)
{
column.Update(e.Row);
}
}
示例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();
}
示例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];
}
示例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);
}
}
示例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;
}
示例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;
}
示例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");
}
示例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;
}
示例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();
}
示例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;
}
}
}
示例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);
}
示例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;
}
}
示例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);
}
示例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);
}