Not able to bind the grid view in code behind desktop application
问题 I have a grid view which lists all the customers. I am binding it in the load time of Form which is placed in the child of MDI. Columns in the grid view is predefined at the design time. My code for the Form_Load() event is: try { cn = db.createConnection(); if (cn.State == System.Data.ConnectionState.Open) { cn.Close(); } cn.Open(); cmd = new OleDbCommand("Select BillNo,PartyName,City,State,FORMAT(BillDt,'dd-mm-yyyy') as BillDt from BillMaster", cn); da = new OleDbDataAdapter(cmd); ds = new