[IronPython] howto access interface method?

Chee Meng lcm at spiralcomms.com
Thu Feb 16 09:57:59 CET 2006


hi,

I am using the DataGridView object which implements the interface ISupportInitialize,
and that have 2 methods BeginInit and EndInit .

However, through Ironpython,
the 2 methods cannot be found.

is there a way to access the 2 methods in python?

#((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.dataGridView1.BeginInit()

above code gives this error, AttributeError: 'DataGridView' object has no attribute 'BeginInit'


thks


regards
cheemeng







More information about the Ironpython-users mailing list