CompletIT Community Server

Welcome to CompletIT Community Server Sign in | Join | Help
in Search

Why I get warning message saying 'There is grid without name that will not be managed' when all of my grids do have names?

Last post 10-11-2007, 12:08 PM by iiordanov. 0 replies.
Sort Posts: Previous Next
  •  10-11-2007, 12:08 PM 249

    Why I get warning message saying 'There is grid without name that will not be managed' when all of my grids do have names?

    The Name is the only necessary property that DataGridView Extension needs in order to manage a DataGridView control. If there is no Name defined the Extension cannot recognize the DataGridView and therefore cannot save any settings for it. Nevertheless it is possible to get this message sometimes in version 1.0 even for grids that do have names defined. The reason for this is the sequence of the code generated design time. Workaround for this problem is to open the source code find the call to the extension:
    C#
    dgvExtension.SetManagedByExtension( dataGridView, true );
    VB.NET
    DGVExtension.SetManagedByExtension( Me.DataGridViewControl, True )

    and move it after the line where the Name of the same DataGridView control is set so finally you will have:
     
    C#
    dataGridView.Name = "dataGridView";
    dgvExtension.SetManagedByExtension( dataGridView, true );
    VB.NET
    DataGridViewControl.Name = "dataGridView" 
    DGVExtension.SetManagedByExtension( Me.DataGridViewControl, True )

    This problem is fixed in version 1.1.

    Filed under:
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems