c# - how to set xtrapivotgrid datasource from dataset dynamically at run time -


i have application user can select tables populated , create xtrapivotgrid @ runtime when bind datasource dataset returned function no thing appear , can me, thank .

dataset database = function();  devexpress.xtrapivotgrid.pivotgridcontrol pivotgrid = new devexpress.xtrapivotgrid.pivotgridcontrol();  pivotgrid.datasource = database;  pivotgrid.retrievefields(); pivotgrid.forceinitialize(); 

`

you need add created pivotgrid form:

devexpress.xtrapivotgrid.pivotgridcontrol pivotgrid = new devexpress.xtrapivotgrid.pivotgridcontrol();  controls.add(pivotgrid); pivotgrid.forceinitialize(); pivotgrid.datasource = database.tables[0]; pivotgrid.retrievefields(); 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -