Hello Friends,
I am developing a web application in asp.net with c# .I am making a form of sales order.I place a dropdown
to fill the list of sell to customer no. field. But i am unable to fetch a single field through WebServices. So Tell me how to solve
This. i am using the following code:
List<SalesOrderWS_Filter> S_filter = new List<SalesOrderWS_Filter>();
SalesOrderWS_Filter nameFilter = new SalesOrderWS_Filter();
nameFilter.Field = SalesOrderWS_Fields.Sell_to_Customer_Name;
nameFilter.Criteria = Session["user"].ToString();
S_filter.Add(nameFilter);
SalesOrderWS[] list = SalesService.ReadMultiple(S_filter.ToArray(), null, 100);
foreach (SalesOrderWS c in list)
{
grd_OrderDetails.DataSource = list;
grd_OrderDetails.DataBind();
}
and by use of this code my grid display every field of table but i want tha the selected fields are visible in grid .
Please Help me on both problem..
Sharad Gupta
Navision Technical Consultant & .Net Developer
0
Comments
If you want to show the selected fld on your grid, you may need to bind at asp grid or data grid.
1st Load Objectdatasource on your (aspx or win form).
2nd Your objectdatasource set datasource with your WS.
3rd after get flds on your grid remove objectdatasource.
4th remove unnecessary fld.
Sample Link : http://www.asp.net/data-access/tutorials/using-templatefields-in-the-gridview-control-vb
Regards,
Yukon