UiPath Form Grid Refresh (Doesn't work as intended for removed row items)

What does “Redraw On” do in UiPath Form? There is no tooltip or documentation on website for this.
image

I am trying to achieve refreshing of editGrid within UiPath form when row is removed from DT. It works well when new row is added in DT, but doesn’t work when row is removed. Some how it preserves previous row.

My current approach is to refresh grid based on button click… so the flow exits out of form, performs validation, generates DT and pass this formatted DT back to form to populate in EditGrid. It is working fine, except for removing the row.

How can I refresh grid upon button click so that it removes rows not present in DT, but were present earlier?

Appreciate any input.

Thanks,
Harshil

Hi @harshilmehta which version of the UiPath Forms are you using?

The latest stable release - 1.1.11

Here is my observation based on thorough testing…

If the row has any null/blank values, then editGrid preserves previously populated value. If I replace this value with some other value then it updates. So my current approach is to have some value in each cell. In this case, I have defaulted all row cells to “0” and designed the business logic with the fact that “0” should be treated as no action or treat it as null.

It would be great if UiPath can share solution for this issue or rectify in newer release of UiPath Form.

@harshilmehta refreshing works only for Data Grid for now. It is not available for Edit Grid.

Hi Nishant,

Thank you for the update. I am using button click approach for updating editgrids. It is working fine so far. The only problem is, when we pass null values to any cell/row/column, the editgrid doesn’t update for that particular cell/row/column. It some how preserves previously populated value. So, as a work around I am passing “0” to all blank cells in datatable. “0” is acting as new null.

I feel this is bug at the activity level. It would be great if this could be fixed in future release.

Thanks,
Harshil

@harshilmehta Thanks for pointing it out. We will check.

@harshilmehta Please find the attached xaml demonstrating how to change the values of editgrid.

1 Like

Hi Nishant, Thank you for sharing the workflow. For some reason I am unable to load it. Is there any custom library used for this? I am getting below error:

“Could not find member ‘LocalCSSFilePath’ in type ‘UiPath.Form.Activities.FormActivity’. Row: 76, Column: 171”

I am curious to know how you had LocalCSSFilePath property?

What version of Form activity do I need to use for this? v1.1.11 doesn’t have LocalCSSFilePath property.

I managed to launch the workflow. This example is using Data Grid and not edit grid. The issue is with Edit Grid, not with Data Grid.

Hi @harshilmehta Please ignore the above sample and the error. We’ll share the edit grid example.

Hi @harshilmehta Can you share the workflow demonstrating the above issue. We will take a look.