That's not entirely true. There are many styles that can be applied to a table row, but borders is not one of them.
On Oct 21, 12:21 am, Ajay Garg <[EMAIL PROTECTED]> wrote: > Thanks alex. It works. > Just wonder, that styling is applicable on a cell basis, and not on > row basis ;-) > > Thanks again > Ajay Garg > > On Oct 20, 4:29 pm, "alex.d" <[EMAIL PROTECTED]> wrote: > > > > > Smth. like this probably? > > > for(int i=0; i<grid.getRowCount(); i++) > > for(int j=0; j<grid.getColumnCount(); j++) > > grid.getCellFormatter().addStyleName(i,j,"border"+i%2); > > > Every even row(actually every cell in it) will have a "border"-style > > assigned. Every odd row - "border1"-style. > > > On 20 Okt., 13:07, Ajay Garg <[EMAIL PROTECTED]> wrote: > > > > Hi all. > > > > I am trying to apply styling to borders to a Grid, on a row by row > > > basis. That is, apply color 1 on border of row 1, color 2 on border of > > > row 2, and so on. I am aware of Grid's getRowFormatter() method, but > > > haven't been able to apply the color at the bottom border of say, row > > > numbered 'i'. > > > > It may be a query of html more than of gwt, but I have seemed to give > > > up. Any light in this regard will be highly appreciated. > > > > Waiting for a reply. > > > Ajay Garg- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
