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
Post a Comment