grid view problem

shillshill Member Posts: 21
edited 2011-12-16 in NAV Three Tier
M trying to bind a datasource to the gridview in c# through services. No error or exception is generated, though gridview is not visible while executing the code.

WindowsFormsApplication2.salespost1_Service service = new WindowsFormsApplication2.salespost1_Service();

salespost1 sale=new salespost1();
sale=service.Read("No");
GridView1.DataSource = sale.SalesLines;
GridView1.DataBind();

//salepost1_service is of page 43

Answers

  • shillshill Member Posts: 21
    change the AutoGenerateColumns property of the gridview to true...thats it..problem solved.
Sign In or Register to comment.