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 :

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close