DataGridViewEx - DataGridView mit eingebautem Filter

    • Release
    • Closed Source

    Es gibt 28 Antworten in diesem Thema. Der letzte Beitrag () ist von us4711.

      Ja danke, das mit der IBindingListView-Schnittstelle habe ich geregelt, dass passt perfekt.

      Naja, wenn ich in der Filterzelle bin würde man mit dem Tab von Haus aus schon in die nächste Filterzelle weiterwechseln - wie man es von der normalen DataGridView gewohnt ist, wenn man in einer Zelle ist und von dort in die nächste Zelle wechseln möchte. Wäre nur eine Anregung von mir gewesen weil das Wechseln von der Filterzelle immer einen Wechsel zur Maus braucht und damit meinen Arbeitsfluss unterbricht.
      @axelp
      Ich schau' mal, was ich da machen kann. Hab's in jedem Falle in die ToDo-Liste aufgenommen.
      Im Moment entwickle ich en einer EnumComboBoxColumn, die als Lookup-Datenquelle eine Enum annimmt ... wird wohl diese Woche Online gehen.
      Bin zwar nicht US4711, aber da ich vor demselben Problem stand, hier meine Lösung:
      • die Dll aus dem zip-file irgendwo hinkopieren, idealerweise z.B. in einen Projektordner oder wohin Du sonst möchtest.
      • In VisualStudio im Menu "Extras" den Punkt "Werkzeugkastenelemente auswählen" anklicken,
      • im folgenden Fenster den Tab ".NET-Framework-Komponenten" anklicken
      • auf "Durchsuchen" klicken und in den Ordner gehen, wo Du die Dlls abgelegt hast
      • die "US.WindowsEx.FormsEx.ControlsEx.dll" auswählen, auf "Öffnen" klicken und die folgende Dialog-Box bestätigen
      Dann solltest Du die DGV-Ex in Deiner Toolbox haben, ggf. vorher noch im Projekt-Menu die Werkzeugkastenelemente aktualisieren.

      Jedenfalls bei mir ging es so.

      LG, Volkmar
      Erstmal Danke für das tolle DGV Control.

      Ich habe mal ein paar Fragen dazu:

      1. Wie lösche ich alle Filter auf einmal (Ich möchte dazu gerne einen separaten Button)

      2. Wie spreche ich die einzelnen Zellen im Filter an (Ich möchte Werte von einer Textbox übergeben)

      3. Ich habe es verpeilt die neuste Version herunterzuladen und habe das Control dann nochmal gelöscht und gegen die neuste Variante ersetzt. Jetzt kommt auf einmal die Fehlermeldung in Showfilterbar wenn ich sie von False auf true setze : "Ungültiger Eigenschaftswert. Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. Wie kann man das beheben ?

      Vielen Dank und Mfg.
      Steffen
      Bei mir kommt immer der Fehler:
      ​An unhandled exception of type 'System.NullReferenceException' occurred in US.WindowsEx.FormsEx.ControlsEx.dll
      Additional information: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.


      Sobald ich versuche zu Filtern. Der Debug Code:
      Spoiler anzeigen

      Quellcode

      1. ​'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      2. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      3. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      4. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      5. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      6. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      7. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      8. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\Users\Mike\Desktop\MonteurSoft 2.0\MonteurSoft\MonteurSoft\bin\Debug\MonteurSoft.vshost.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      9. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      10. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      11. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Deployment\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      12. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      13. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      14. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      15. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      16. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      17. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      18. The thread 0x2844 has exited with code 0 (0x0).
      19. The thread 0x1ec0 has exited with code 0 (0x0).
      20. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\Users\Mike\Desktop\MonteurSoft 2.0\MonteurSoft\MonteurSoft\bin\Debug\MonteurSoft.exe'. Symbols loaded.
      21. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      22. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      23. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\Users\Mike\Desktop\MonteurSoft 2.0\MonteurSoft\MonteurSoft\bin\Debug\US.WindowsEx.FormsEx.ControlsEx.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      24. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_de_b77a5c561934e089\System.Windows.Forms.resources.dll'. Module was built without symbols.
      25. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\MySql.Data\v4.0_6.9.9.0__c5687fc88969c44d\MySql.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      26. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      27. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      28. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
      29. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_de_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols.
      30. 'MonteurSoft.vshost.exe' (CLR v4.0.30319: MonteurSoft.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Transactions.resources\v4.0_4.0.0.0_de_b77a5c561934e089\System.Transactions.resources.dll'. Module was built without symbols.
      31. System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unbehandelte Ausnahme</Description><AppDomain>MonteurSoft.vshost.exe</AppDomain><Exception><ExceptionType>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</Message><StackTrace> bei US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx.DataGridViewExColumnHeaderCell.ComposeFilterExpression(Object sender, DataGridViewColumn DataColumn) in E:\Visual Studio 2013\Projects\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\DataGridViewEx\MustInherits\DataGridViewExColumnHeaderCell.vb:Zeile 362.
      32. bei US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx.DataGridViewExColumnHeaderCell.m_FilterControl_TextChanged(Object sender, EventArgs e) in E:\Visual Studio 2013\Projects\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\DataGridViewEx\MustInherits\DataGridViewExColumnHeaderCell.vb:Zeile 70.
      33. bei US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx.DataGridviewExTextBox.OnTextChanged(EventArgs e) in E:\Visual Studio 2013\Projects\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\DataGridViewEx\DataGridViewExTextBoxColumn\DataGridviewExTextBox.vb:Zeile 34.
      34. bei System.Windows.Forms.TextBoxBase.WmReflectCommand(Message&amp;amp; m)
      35. bei System.Windows.Forms.TextBoxBase.WndProc(Message&amp;amp; m)
      36. bei System.Windows.Forms.TextBox.WndProc(Message&amp;amp; m)
      37. bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
      38. bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
      39. bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      40. bei System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
      41. bei System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
      42. bei System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message&amp;amp; m)
      43. bei System.Windows.Forms.Control.WmCommand(Message&amp;amp; m)
      44. bei System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
      45. bei System.Windows.Forms.DataGridView.WndProc(Message&amp;amp; m)
      46. bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
      47. bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
      48. bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      49. bei System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
      50. bei System.Windows.Forms.NativeWindow.DefWndProc(Message&amp;amp; m)
      51. bei System.Windows.Forms.Control.DefWndProc(Message&amp;amp; m)
      52. bei System.Windows.Forms.Control.WmKeyChar(Message&amp;amp; m)
      53. bei System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
      54. bei System.Windows.Forms.TextBoxBase.WndProc(Message&amp;amp; m)
      55. bei System.Windows.Forms.TextBox.WndProc(Message&amp;amp; m)
      56. bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
      57. bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
      58. bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      59. bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
      60. bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
      61. bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
      62. bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
      63. bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
      64. bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
      65. bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
      66. bei MonteurSoft.My.MyApplication.Main(String[] Args) in :Zeile 81.
      67. bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
      68. bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
      69. bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
      70. bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
      71. bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      72. bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      73. bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
      74. bei System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
      75. bei US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx.DataGridViewExColumnHeaderCell.ComposeFilterExpression(Object sender, DataGridViewColumn DataColumn) in E:\Visual Studio 2013\Projects\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\DataGridViewEx\MustInherits\DataGridViewExColumnHeaderCell.vb:Zeile 362.
      76. bei US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx.DataGridViewExColumnHeaderCell.m_FilterControl_TextChanged(Object sender, EventArgs e) in E:\Visual Studio 2013\Projects\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\DataGridViewEx\MustInherits\DataGridViewExColumnHeaderCell.vb:Zeile 70.
      77. bei US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx.DataGridviewExTextBox.OnTextChanged(EventArgs e) in E:\Visual Studio 2013\Projects\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\US.WindowsEx.FormsEx.ControlsEx.DataGridViewEx\DataGridViewEx\DataGridViewExTextBoxColumn\DataGridviewExTextBox.vb:Zeile 34.
      78. bei System.Windows.Forms.TextBoxBase.WmReflectCommand(Message&amp;amp; m)
      79. bei System.Windows.Forms.TextBoxBase.WndProc(Message&amp;amp; m)
      80. bei System.Windows.Forms.TextBox.WndProc(Message&amp;amp; m)
      81. bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
      82. bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
      83. bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      84. bei System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
      85. bei System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
      86. bei System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message&amp;amp; m)
      87. bei System.Windows.Forms.Control.WmCommand(Message&amp;amp; m)
      88. bei System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
      89. bei System.Windows.Forms.DataGridView.WndProc(Message&amp;amp; m)
      90. bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
      91. bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
      92. bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      93. bei System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
      94. bei System.Windows.Forms.NativeWindow.DefWndProc(Message&amp;amp; m)
      95. bei System.Windows.Forms.Control.DefWndProc(Message&amp;amp; m)
      96. bei System.Windows.Forms.Control.WmKeyChar(Message&amp;amp; m)
      97. bei System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
      98. bei System.Windows.Forms.TextBoxBase.WndProc(Message&amp;amp; m)
      99. bei System.Windows.Forms.TextBox.WndProc(Message&amp;amp; m)
      100. bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
      101. bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
      102. bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      103. bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
      104. bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
      105. bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
      106. bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
      107. bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
      108. bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
      109. bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
      110. bei MonteurSoft.My.MyApplication.Main(String[] Args) in :Zeile 81.
      111. bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
      112. bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
      113. bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
      114. bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
      115. bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      116. bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      117. bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
      118. bei System.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord>
      119. An unhandled exception of type 'System.NullReferenceException' occurred in US.WindowsEx.FormsEx.ControlsEx.dll
      120. Additional information: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
      121. The program '[5504] MonteurSoft.vshost.exe' has exited with code 0 (0x0).
      Wenn's dicke kommt, kommts dicke.
      Nach Festplattenausfall sind die Originalsourcen des Beitrags den Weg alles irdischen gegengen, also nicht mehr verfügbar.
      Aber zwischenzeitlich hatte ich eine wenig weiterentwickelt, daher nachstehend die neuen (und stabilen) Ressourcen.

      Die erforderlichen DLL's: US.ControlsEx.zip (259,48 kB)
      Das Testprojekt: US.ControlsEx00.zip (143,25 kB)

      Die korrekte Vorgensweise zur Benutzung ist nun wie folgt:
      • DLL's in die Werkzeugleiste einbinden
      • Von dort DataGridViewEx auf eine Foem ziehen. NICHT über den Datenbankdesigner, das geht noch nicht.
      • Dann aber vom Datenbankdesigner aus die komplette Tabelle, oder auch einzelne Felder auf das DataGridViewEx ziehen.
      • Datasets und Bindingsources, ggf. TableAdapter werden automatisch generiert
      • Daten wie üblich bearbeiten.
      Bei Fragen bitte melden.

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „us4711“ ()