Selective formatting in Data Grid

Chinmay shared this question 5 years ago

I have a data grid which i have attached to a data master. I have a specific requirement to bold the first row of the grid on an event and then unbold it. How do i go about doing that.

Comments (1)


You can use an attribute to control in which state is the row. Let's say you add an attribute to the data master named 'isbold' of type 'true/false'. You will need also a way to identify the first row. Then just use the Filter functions to get the row you want and change the attribute value. Finally, create an on page load event on the row that, depending on the value of 'isbold', changes the style of the elements on the row. This tutorial might help you with that: