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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

enter same value to all selection in GridControl ??

Thread ID:





22044 Dec 2,2004 06:28 AM UTC Dec 2,2004 06:56 AM UTC WinForms 1
Tags: GridControl
Joe Wong
Asked On December 2, 2004 06:28 AM UTC

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 06:56 AM UTC

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.

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

Live Chat Icon For mobile
Live Chat Icon