hello
i have a problem with the gridview
when i get the data from datatable to use in the grid the result is good but when i use the horizotal scroll to see a results(there are 30 column)the values disapear and the cells are empty!!
can you help me plz?
there is a code:
i have a problem with the gridview
when i get the data from datatable to use in the grid the result is good but when i use the horizotal scroll to see a results(there are 30 column)the values disapear and the cells are empty!!
can you help me plz?
there is a code:
DataTable dt = new DataTable();
SqlConnection connection = new SqlConnection("Data Source=.;Initial Catalog=OptimisationDataBase;Integrated Security=True");
string str2 = "SELECT * FROM [OptimisationDataBase].[dbo].[CDRMaxCI] WHERE [OptimisationDataBase].[dbo].[CDRMaxCI].[Cell ID] = 57042 OR [OptimisationDataBase].[dbo].[CDRMaxCI].[Cell ID] = 57312";
connection.Open();
SqlDataAdapter sqlda = new SqlDataAdapter(str2, connection);
sqlda.Fill(dt);
connection.Close();
this.GridViewKPI.ItemsSource = dt;