private void dataGridTextColumn1_DataCellValuePull(object sender, DataGridDataValuePullEventArgs e) { string val = ((DataRowView)(e.Row.SourceItem))["Name"] as string; e.Value = val; e.Handled = true; }
private void dataGridEh1_DataCellValuePull(object sender, DataGridDataValuePullEventArgs e) { int colNum = int.Parse(e.Column.Title.Text); int rowNum = FindColRowDataByCol(colNum).RowNum; if (rowNum == e.Row.VisibleIndex + 1) { e.Value = true; } e.Handled = true; }
private void dataGridTextColumn3_DataCellValuePull(object sender, DataGridDataValuePullEventArgs e) { object val = dataGridDynaCellColumn1.GetRowValue(e.Row); if (val != null) { e.Value = val.GetType().ToString(); } else { e.Value = "<null>"; } e.Handled = true; }