visual studio 2010 - Add DataGridView using Telerik DOCK Libraries -



visual studio 2010 - Add DataGridView using Telerik DOCK Libraries -

raddock raddock1 = new raddock(); raddock1.dock = dockstyle.fill; this.controls.add(raddock1); toolwindow window1 = new toolwindow(); window1.name = "window1"; raddock1.dockwindow(window1, dockposition.left); documentwindow document1 = new documentwindow(); document1.name = "document1"; raddock1.adddocument(document1);

i using radcontrols winforms, u can find in provided link: http://www.telerik.com/help/winforms/overview.html

in document1 , want dynamically add together datagridview default provided vs2010. how can this.

to add together grid need this:

datagridview datagridview1 = new datagridview(); document1.controls.add(datagridview1);

however, grid empty. fill it, set datasource property.

datagridview datagridview1 = new datagridview(); list<colors> colors = new list<colors>(); colors.add(new colors("red")); colors.add(new colors("green")); colors.add(new colors("blue")); colors.add(new colors("yellow")); colors.add(new colors("pink")); datagridview1.datasource = colors; document1.controls.add(datagridview1);

this using simple class colors.

public class colors { public colors(string color) { color = color; } public string color { get; set; } }

it should produce form looks this:

visual-studio-2010 datagridview telerik

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -