ashishraj14_1
15 years agoNew Contributor
DataGrid itemrenderer - unable to modify an existing cell value
Hi there,
I have tried all the possible combinations on how to set a cell value of a column contained within a DataGrid.
The object I am trying to work with looks like this...
Browser.AdminPage.Settingsform.Datagrid.listbasecontentholder.datagriditemrenderer
baiscally its a datagrid and some columns have itemrenderers to select value from a dropdown list....
I have a datagrid which has 7 rows and 2 columns & the cell value wghich I am trying to modify is a datagriditemrenderer object
I am using the following code
==================================
rcount = dataGrid.wRowCount
ccount = dataGrid.wColumnCount
for i = 0 to rcount-1
for j = 0 to ccount-1
I have tried all the possible combinations on how to set a cell value of a column contained within a DataGrid.
The object I am trying to work with looks like this...
Browser.AdminPage.Settingsform.Datagrid.listbasecontentholder.datagriditemrenderer
baiscally its a datagrid and some columns have itemrenderers to select value from a dropdown list....
I have a datagrid which has 7 rows and 2 columns & the cell value wghich I am trying to modify is a datagriditemrenderer object
I am using the following code
==================================
rcount = dataGrid.wRowCount
ccount = dataGrid.wColumnCount
for i = 0 to rcount-1
for j = 0 to ccount-1
tmp = dataGrid.wValue(i,j)
MsgBox tmp
if (tmp = "xyz")Then
dataGrid.wValue(i,j) = "New Value"
End If
next
next
============================================
I am able to get the old value and replace it with the new value. Problem I am runing into is ,when I click 'Save' button in the app, the new value does not get saved :(
Is there any other way to set/modify the cell value is a datagriditemrenderer?
Many thanks in advance.
cheers,
Ash