Grid with no cell borders

May 22, 2009 at 8:36 AM


I like to have a grid with no borders (this is importent for my html export as the html page will be printed).
I'd a look here and I found this sample:

grid1[row, 2].View.Border = new DevAge.Drawing.RectangleBorder(DevAge.Drawing.BorderLine.NoBorder);

This works fine but by this way I've to set the view for every cell.
Isn't there a way to set that view over any cells?



May 25, 2009 at 11:49 AM
Edited May 25, 2009 at 11:59 AM

I think it happened because the concept of shared view between cells , try this solution where you create a new instance of a cell view and you set for the specifics cells .


  Dim _viewNoBorder As New SourceGrid.Cells.Views.Cell()
  _viewNoBorder.Border = New DevAge.Drawing.RectangleBorder(DevAge.Drawing.BorderLine.NoBorder)
 grid1(row, 2).View =


SourceGrid.Cells.Views.Cell  viewNoBorder =new SourceGrid.Cells.Views.Cell();

  _viewNoBorder.Border = New DevAge.Drawing.RectangleBorder(DevAge.Drawing.BorderLine.NoBorder);
 grid1[row, 2].View =