using c #, vs2008 winforms
I have a datagridview that I programmatically binds to a binding source bound to a dataset with 1 table.
After filling the data set with sqlAdaptor, I want to add a new column to the data set, and in the new column I want to fill it with the result obtained from calling the custom method in the form.
The Eg code is below, but I get the expression "Expression contains undefined this.Test ()
Is it allowed to call methods as such in a column expression
well in advance for any help greetings
this.dsProdOrdLst1.ProdOrder.Columns.Add("sOrderType", typeof(string), "this.Test(order_type)");
elsewhere in the form class is a method
public int Test(int orderType) { return 10;
source share