[IronPython] weirdness with DataGridViewButtonColumn

Mark Rees mark.john.rees at gmail.com
Wed Aug 2 22:02:52 PDT 2006


It's not a problem with your workstation. I get exactly the same as you.

On 8/3/06, jeff sacksteder <jsacksteder at gmail.com> wrote:
> Could someone please try the following code? By every piece of documentation
> I can find, this SHOULD create two button columns with the text provided
> displayed on them. All I am getting is blank buttons and I'm beginning to
> suspect that there is something wrong with my workstation.
>
>
> import clr
> clr.AddReference('System.Windows.Forms')
> import System.Windows.Forms as SWF
>
> f = SWF.Form()
> dgv = SWF.DataGridView()
>
> f.Controls.Add(dgv)
> myCol = SWF.DataGridViewButtonColumn
> (Text="Spaminate",UseColumnTextForButtonValue = True)
> dgv.Columns.Add(myCol)
> myCol =
> SWF.DataGridViewButtonColumn(Text="Spaminate2",UseColumnTextForButtonValue
> = True)
> dgv.Columns.Add(myCol)
>
> SWF.Application.Run(f)
>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>


More information about the users mailing list