public void gridview1(DevExpress.XtraGrid.GridControl grid1, string query) { SqlConnection connection = new SlConnection(Connectionstring); connection.Open(); SqlDataReader reader; reader = new SqlCommand(query, connection).ExecuteReader(); reader.Read(); grid1.DataSource = reader; grid1.DataBindings; // Here Error occur. connection.Close(); } My class Object. program obj = new program() string query="....."; obj.gridview1(grd,query);
grid1.DataBindings; // Here Error occur.
grid1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)