How to change size of a datagrid in Visual 2003 C# in syntax?

Hello

I want to change my datagrid size in my code, but how to do that with syntax

I have tried following:

datagrid1.size.height = 300;
datagrid1.size.width = 100;

But then I get an error message, that I can't set the size that way.

Someone know how I set the datagrid size in syntax in my program

Hope someone know and will answer.

Thanks.

Spot



Answer this question

How to change size of a datagrid in Visual 2003 C# in syntax?

  • Gianluca Hotz

    try this

    datagrid1.size=new size(300,100);


  • tryingtolearnxpress

    Ops wrong value

    datagrid1.Size=new Size(100,300);


  • How to change size of a datagrid in Visual 2003 C# in syntax?