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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

need to update textfield when record has been inserted/updated/deleted in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

36381 Oct 28,2005 09:16 AM UTC Oct 28,2005 09:29 AM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 28, 2005 09:16 AM UTC

I''ve got a databoundgrid and a textbox right under it. every time a enter a new record/update an existing record/delete an existing record in the databoundgrid, I need to append something to the text already in the textbox. where do I put my code? *sigh* this all seems so trivial but I really can''t seem to find my way yet in .NET :(

Administrator [Syncfusion]
Replied On October 28, 2005 09:29 AM UTC

You can handle the grid.RowEnter event.
private void gridDataBoundGrid1_RowEnter(object sender, Syncfusion.Windows.Forms.Grid.GridRowEventArgs e)
{
	//put the value in column 1 into the textbox
	string s = this.gridDataBoundGrid1[e.RowIndex, 1].Text;
	this.textBox1.Text = s;
}

CONFIRMATION

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.

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

;