We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dynamically adding a panel

Thread ID:





103145 Apr 5,2012 05:15 AM UTC Apr 10,2012 08:54 AM UTC WinForms 1
Tags: GridControl
Asked On April 5, 2012 05:15 AM UTC


I am trying to get a numeric updown inside a panel with a button.
This is the achieve xcel like insert. Once the user right clicks a cell and clicks insert, I need a small box with either radio button or numericupdown. The user selects a value in the numericupdown and clicks ok. now this value should be taken as input

private void InsertRowToolStripMenuItem_Click(object sender, EventArgs e)
GridRangeInfoList list;

list = theGrid.Selections.GetSelectedRows(true, false);
int rowNumber = list.ActiveRange.Top;
Panel box = new Panel(); //
//NumericUpDown ud1 = new NumericUpDown();
//stack them from the left
ud1.Dock = DockStyle.Left; ud1.Width = 30;
ud1.BorderStyle = BorderStyle.FixedSingle;
box.BorderStyle = BorderStyle.None;
Button btn = new Button();
btn.Dock = DockStyle.Bottom;
btn.Text = "OK";
btn.Click += new EventHandler(btn_Click);
//gridControl1.RowHeights[2] = 20;
//gridControl1.ColWidths[2] = 64; gridControl1[2, 2].CellType = "Control";
//gridControl1[2, 2].Control = box; this.Controls.Add(box);
theData.CreateRowsToInsert(rowNumber, numberOfRowstobeInserted);

I dont see a panel showing. even if the user clicks insert, there is no panel/numericupdown

Please suggest

Mercy C [Syncfusion]
Replied On April 10, 2012 08:54 AM UTC

Hi Smitha,

Thanks for your interest in Syncfusion products.

Your query in forum incident 103122 is same as this incident I suppose. Please do follow up the incident 103122.

Please let me know if you have any concerns.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon