The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator Syncfusion Team 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.