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.

enter same value to all selection in GridControl ??

Thread ID:





22044 Dec 2,2004 01:28 AM Dec 2,2004 01:56 AM Windows Forms 1
Tags: GridControl
Joe Wong
Asked On December 2, 2004 01:28 AM

can GridControl do this, example: if user selected the row/column by the header, and if he type in a value, the value will be entered to the whole row can GridControl do this (and how) ?? thx in advance

Administrator [Syncfusion]
Replied On December 2, 2004 01:56 AM

There is no property setting to do this, but I think you can handle a couple of events to get it done.
bool fillFlag = false;
GridRangeInfo fillRange = null;
private void gridControl1_CurrentCellActivating(object sender, GridCurrentCellActivatingEventArgs e)
	if(e.ColIndex == 0)
		e.ColIndex = 1;
		fillFlag = true;
		fillRange = GridRangeInfo.Cells(e.RowIndex, 1, e.RowIndex, this.gridControl1.ColCount);
	if(e.RowIndex == 0)
		e.RowIndex = 1;
		fillFlag = true;
		fillRange = GridRangeInfo.Cells(1, e.ColIndex, this.gridControl1.RowCount, e.ColIndex);
private void gridControl1_CurrentCellAcceptedChanges(object sender, CancelEventArgs e)
		fillFlag = false;
		GridCurrentCell cc = this.gridControl1.CurrentCell;
		this.gridControl1.ChangeCells(this.fillRange, cc.Renderer.ControlText);


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.