How to autofit column width in Data Table component or how to use CSS in UiPath Forms

I am using Data Table component to present a data table in show form activity where I have 15+ columns and I am getting below view

so is there a way to auto fit the columns or use CSS to make it presentable

Hi @mrv.raj

You can try to use manually edit json file :
{
“header”: “ColumnName”,
“dataKey”: “ColumnName”,
“width”: “auto”
}

As well different method try enabling horizontal scrolling in datatable properties use scrollable= true.

Yes, tried width and horizontal scrolling as well both are not working

I found one work around for this, if we press Ctrl+ it will automatically adjust to the screen

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.