Hi
after pressing button1
filtr 'bmw 1'
private void button1_Click(object sender, EventArgs e)
{
DataView _product = ((DataTable)product_gridGroupingControl2.DataSource).DefaultView;
_product.RowFilter = Filter_textBox.Text;
}
after pressing
button3
private void button3_Click(object sender, EventArgs e)
{
int i = 100;
foreach (DataRowView drv in ((DataTable)product_gridGroupingControl2.DataSource).DefaultView)
{
drv["project"] = i;
drv["UnitPrice"] = i *2;
i++;
}
Table t = product_gridGroupingControl2.Table;
t.SelectedRecords.Add(product_gridGroupingControl2.Table.Records[0]
}
after pressing
button3 -
does not save all changes that are visible in ggc to the database
product_TableAdapter.Update(dstest009, "Product");
please help
Gregory
gridGroupingControl.DataSource as DataTable).DefaultView
TableAdapter.Update
|
// must call this to add row in table
this.table.AcceptChanges();
// it reloads the datatable rows.
this.gridGroupingControl1.Table.Reload(); |