Home

PanelManager.DisplayControl without Right click menu

this code can show data in grid,but without Right click menu like this:

    public static void DisplayInGrid(this DataTable dataTable, string title = null)

    {

        if (string.IsNullOrEmpty(title)) title = "&Custom";

        var dgrid = new DataGridView { DataSource = dataTable };

        PanelManager.DisplayControl(dgrid, title);

    }

Comments

Sign In or Register to comment.