0

i'm using grid control in DevExpress reports when i set data source dynamically to my grid control its not showing a output, anyone please help me to get.

this is my code

        DataTable dtJobOrder = new DataTable();
        string DTQuery = @"Select Product from JobOrder";

        dtJobOrder = Generic.GetDataTable(DTQuery);
        grdspare.DataSource = dtJobOrder;

2 Answers2

0

Probably you already found a way. You can achieve this by calling PopulateColumns method on grid view.

Softec
  • 1,087
  • 11
  • 14
0

When you are dynamically set the data source to gridview then you have to set AutoGeneratedColumns to true.

AutoGeneratedColumns = true