Change colour of selected record of the Grid - CloudFronts

Change colour of selected record of the Grid

Introduction:

In this blog, we will learn how to change the colour of selected record of the Grid.

Use Case:

We have a requirement where there is a Grid of CDS Data Source, on clicking any record, it should get highlighted.

Steps:

  • To change the colour of selected records, update the TemplateFill Property:
TemplateFill property of the Deactivate Button:

Set Gallery.TemplateFill = 
If(
<Guid of record> = <Selected Record GUID>,
Color,
Color
 )
 
For eg: BrowseGalleryObjectives.TemplateFill=
If(
Objective = BrowseGalleryObjectives.Selected.Objective,
RGBA(220, 231, 238, 1),
RGBA(0,0,0,0)
)
  • This is the grid with highlighting record.

Conclusion:

Hope above Blog helps you change the colour of selected record of the Grid.


Share Story :

Secured By miniOrange