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.

How to change values in UserControl in a Cell

Thread ID:





14966 Jun 8,2004 09:40 PM Jun 9,2004 02:40 AM Windows Forms 1
Tags: GridControl
Luis Guerra
Asked On June 8, 2004 09:40 PM

Using the RepeaterUserControl sample, how can I change the value in a textbox in the UserControl, knowing the rowIndex and colIndex of the cell hosting the UserControl? I can figure out how to get to the UserControl in an specific cell to change values in textboxes or other controls in the UserControl.

Administrator [Syncfusion]
Replied On June 9, 2004 02:40 AM

One approach would be to change the DataSource directly instead of trying to change the DataSource through the grid. int gridRowIndex = ???;//what ever grid row you want to set int positionInDataTable = gridRowIndex - 1; this.dt.Rows[positionInDataTable]["City"] = newValue; //change the city field Making the change directly to the datasource should be immediately reflected in the grid display.


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.