web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Change colour of selected record of the Grid

Community Member Profile Picture Community Member

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.

The post Change colour of selected record of the Grid appeared first on Cloudfronts - Microsoft Dynamics 365 | Power BI | Azure.

Comments

*This post is locked for comments