private void ButtonDelNoBuyItem_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dataGridViewNoBuyList.SelectedRows) { UIDataSet.BaseGoodNoBuyListRow item = (UIDataSet.BaseGoodNoBuyListRow)((DataRowView)row.DataBoundItem).Row; uIDataSet.BaseGoodNoBuyList.Rows.Remove(item); } }
private void ButtonEditNoBuyItem_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dataGridViewNoBuyList.SelectedRows) { UIDataSet.BaseGoodNoBuyListRow item = (UIDataSet.BaseGoodNoBuyListRow)((DataRowView)row.DataBoundItem).Row; new EditNoBuyItemWindow(gameData, item).ShowDialog(); } }
public EditNoBuyItemWindow(FLGameData gameData, UIDataSet.BaseGoodNoBuyListRow dataItem) { InitializeComponent(); this.gameData = gameData; this.dataItem = dataItem; this.Text = "Edit No Buy Item: " + dataItem.BaseDescription; hashListBindingSource.DataSource = gameData.DataStore; FilterUpdate(); }
private void DataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { UIDataSet.BaseGoodNoBuyListRow item = (UIDataSet.BaseGoodNoBuyListRow)(((DataRowView)(dataGridViewNoBuyList[e.ColumnIndex, e.RowIndex].OwningRow).DataBoundItem)).Row; new EditNoBuyItemWindow(gameData, item).ShowDialog(); }