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.
Unfortunately, activation email could not send to your email. Please try again.

GridControl multi-edit

Thread ID:





72179 Mar 6,2008 10:43 AM Mar 10,2008 03:12 PM Windows Forms 1
Tags: GridControl
Asked On March 6, 2008 10:43 AM


surely this is a stupid question but I've been looking for hours now and can't find how to do this:

I want to enable multi-cell editing in the GridControl so that if the user selects a range of cells then types into one then the values of all cells selected will be set.


Administrator [Syncfusion]
Replied On March 10, 2008 03:12 PM

Hi felix,

Thank you for using Syncfusion products.

One way you can do this by handling the CurrentCellChanged event of the GridControl and set the new value of the currentcell into selected cells. Below are the codes:

foreach (GridRangeInfo range in this.gridControl1.Selections.Ranges)
int k = range.Top;
int l = range.Bottom;
int m = range.Left;
int n = range.Right;

GridCurrentCell cc=this.gridControl1.CurrentCell;
for (int i = k; i <=l; i++)
for (int j = m; j <=n; j++)
this.gridControl1.Model[i, j].Text = cc.Renderer.ControlText;

Please refer to the below sample for implementation and let me know if this helps

Best regards,


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.

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.