Adding a DataGridView in IronPython Studio Winforms gets a “'DataGridView' object has no a

By just adding a datagridview in IronPython Studio it triggers a "DataGridView' object has no attribute 'BeginInit'". Is there a fix for this?

The errors are gone if the lines self._DataGridView1.BeginInit() and self._DataGridView1.EndInit() are deleted, but that's not what it should be done to fix that


There's no fix for this and there's likely not to be one because IronPython Studio isn't supported anymore. DataGridView.BeginInit is implemented explicitly and IronPython Studio is based upon IronPython 1.1. You might be able to work around with it by changing that to "ISupportInitialize.BeginInit(self._DataGridView1)" after importing ISupportInitialize but I doubt it'll survive round tripping through the designer.

If you wanted to fix this yourself the source for IronPython Studio is available and you could try modifying the winforms designer code to notice the explicit interface implementation call and emit this code instead. That's likely just fixing IronPython's CodeDom generator.

But really I'd advise you to move to IronPython Tools and WPF. Generating code for the WinForms designer doesn't really work that well with IronPython and WPF is much more suitable. An alternate plan would be to generate the WinForm w/ the designer in C# and subclass it from Python.


  • 11 6 [Error] name lookup of 'i' changed for ISO 'for' scoping [-fpermissive] [cl
  • Conways's Game of life array problems
  • Can I use ViewModel to send data to the server?
  • Intent Service not working in doze mode
  • CRTP and unique persistent identifiers
  • Adding a DataGridView in IronPython Studio Winforms gets a “'DataGridView' object has no a
  • Easily override NuGet DLL in development (VS 2015)
  • What is a softly reachable object?
  • Updating the composer.phar on Symfony2
  • C++ stl pop doesn't return [closed]
  • Whats the best way of persisting data to Isolated Storage on Windows Phone 7?
  • How to remove last utf8 char of a python string
  • Unable to set a breakpoint on main while debugging a program compiled with Rust 1.10 with GDB
  • Return null in boolean to checkbox state converter in XAML
  • Zeromq with python hangs if connecting to invalid socket
  • Azure table query partial partitionkey guid match
  • 'doc_del_count' bigger than 'doc_count' on CouchDB
  • SIP API media codecs
  • Does CSS support inheritance [duplicate]
  • In C what exactly happens if i use () to initialize a double dimension array instead of the {}?
  • Symfony 2 error page response
  • How can I get the choice “H2” back in the H2 consol?
  • Upload file that is in the cpan database
  • Does Apportable support to build library binary (.a/.so)?
  • Which open source license has no forking [closed]
  • How to explicitly/implicitly implemented interface members in C++/CLI?
  • jQuery: add elements until a particular height is reached
  • Eclipse MTJ doesn't see Java ME SDK 3.0 devices
  • how do i write assembly code from c#?
  • C++ pointer value changes with static_cast
  • JBoss External Properties Files in Classpath
  • Marklogic : Query response time is very high
  • Mysterious problem with floating point in LISP - time axis generation
  • Use of this Javascript
  • C++ Partial template specialization - design simplification
  • How to get next/previous record number?
  • How do I rollback to a specific git commit
  • Python: how to group similar lists together in a list of lists?
  • python regex in pyparsing
  • Suggestions to manage Login/Logout transitions