HorizontalGridlines in AdvancedDataGrid issue

Hi,
I am new to the Flex and AS,

I am using AdvancedDataGrid to display values from an XML. As of now the values are displayed without any issues. The problem is when I am trying to draw lines between the rows.
When I say HorizontalDataGridlines=“true” I am getting horizontal lines for the entire grid, which I don’t want. But I want the horizontal lines to get displayed only for the number of rows displayed in the grid.

Any help would be appreciated.

Thanks in advance,

N.Surendran