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

How to change values in UserControl in a Cell

Thread ID:





14966 Jun 9,2004 01:40 AM UTC Jun 9,2004 06:40 AM UTC WinForms 1
Tags: GridControl
Luis Guerra
Asked On June 9, 2004 01:40 AM UTC

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

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.

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