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

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

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 :(

1 Reply

AD Administrator Syncfusion Team 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;
}

Loader.
Live Chat Icon For mobile
Up arrow icon