Tuesday 30 April 2013

Bind a Datagridview


SqlDataAdapter da = new SqlDataAdapter("select * from IBS_SHIP_ADDRESS where Cust_Id ='" + cid + "'",con);
                DataSet ds = new System.Data.DataSet();
                da.Fill(ds);
                dgvShipAddress.DataSource = ds.Tables[0];

No comments:

Post a Comment