The above code will create a new FONT object for each row, which will be slow.For i = 0 To DtdgDataSource.RowCount - 2
For j = 8 To 13
DtdgDataSource.Rows(i).Cells(j).Style.Font = New Font(DtdgDataSource.Font, FontStyle.Bold)
Next
Next
Not sure if this would make a difference, but just give it a try:
Code:Dim myFont as New Font(DtdgDataSource.Font, FontStyle.Bold) For i = 0 To DtdgDataSource.RowCount - 2 For j = 8 To 13 DtdgDataSource.Rows(i).Cells(j).Style.Font = myFont Next Next




icon on the left of the post.
Reply With Quote
