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

GridControl multi-edit

Thread ID:





72179 Mar 6,2008 03:43 PM UTC Mar 10,2008 07:12 PM UTC WinForms 1
Tags: GridControl
Asked On March 6, 2008 03:43 PM UTC


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 07:12 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the 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