Im busy with a Windows Embedded CE 5.0 mobile app. I'm a bit stuck at the moment. I'm using a datagrid with data. I want to add a extra column to the grid(already did this. I added null from dual). Now in app i want users to be able to change the value of the field(how many units are in one pack).
Here is my code for the Datagrid:
private void gridView()
{
conn.Open();
string query = "select distinct s.sku_id_no SKU_id, (pt.product_type_desc|| ' ' ||ps.prod_size_desc|| ' ' ||c.colour_desc) Product_Desc, null Pack_Units from sku s , product_type pt , prod_size ps , colour c , purch_order_carton_sku pocs, purch_order_carton_sku poc, dual where pocs.order_no ='" + this.orderCode + "' and pocs.carton_code ='" + this.cartonCode + "' and pocs.sku_id_no = s.sku_id_no and s.prod_size_id_no = ps.prod_size_id_no(+) and s.colour_id_no = c.colour_id_no(+)";
OracleDataAdapter da = new OracleDataAdapter(query, conn);
OracleDataSet ds = new OracleDataSet();
da.Fill(ds);
dgSku.DataSource = ds.Tables[0];
{
Then I call the grid when screen loads like this:
private void frmCartonContentVerification_Load(object sender, EventArgs e)
{
gridView();
}
So above is how it looks at the moment. So when a user for example click the first field of Pack_Units i want them to be able to edit the field.
Goal is when they click the NEXT button a validation procedure must run and check if that is correct. So it will be great if some can also show me how to get the value from a select field??
Im using Oracle database with VS 2005 c#.
Thanks in advance!