abraXus
2020-06-23T10:09:55Z
Would it be possible to get the IsCellPartClipped property working for cell headers the same way it works for regular cells?

The tooltip shows correctly for cell headers when it is clipped, so it seems like I should be able to check for that just like I can with normal cells. If there is something simple I am missing please just tell me what it is. I have checked the documentation and it looks like it only applies to normal cells.

If it makes a difference, I am using v10.

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        IGrid1.Cols.Count = 10
        IGrid1.Rows.Count = 10
        IGrid1.Cols(1).SortType = iGSortType.None

        IGrid1.Header.Cells(0, 1).Value = "really long header value"
        IGrid1.Cells(3, 1).Value = "really long cell value"

    End Sub

    Private Sub IGrid1_CellClick(sender As Object, e As iGCellClickEventArgs) Handles IGrid1.CellClick
        If IGrid1.Cells(e.RowIndex, e.ColIndex).IsCellPartClipped(iGClippedCellParts.Text) Then
            MsgBox("clipped")
        Else
            MsgBox("not clipped")
        End If
    End Sub

    Private Sub IGrid1_ColHdrClick(sender As Object, e As iGColHdrClickEventArgs) Handles IGrid1.ColHdrClick
        ' the next line will not compile
        ' IsCellPartClipped is not a member of 'iGColHdr'
        If IGrid1.Header.Cells(e.RowIndex, e.ColIndex).IsCellPartClipped(iGClippedCellParts.Text) Then
            MsgBox("clipped")
        Else
            MsgBox("not clipped")
        End If
    End Sub
End Class
Igor/10Tec
2020-06-24T15:31:28Z
A quick notification to let you know I saw this request. Give me some days to work on it.
Igor/10Tec
2020-06-30T11:34:58Z
I've implemented such a method for header cells in iGrid.NET X RC2 and will send it to you for testing.

Should we use the same method name for column headers? Perhaps, IsColHdrPartClipped or simply IsPartClipped would be a better choice. Take into account that we also have footer cells, and theoretically one day someone may request such a method for them. Then a universal method name like IsPartClipped the developer can find in the iGCell/iGColHdr/iGFooterCell objects would be the best choice.

And can you also tell us, why do you need this method for header cells?
abraXus
2020-07-01T15:18:48Z
I plan on using it to adjust the height of the cells where the text in the header is getting clipped when SpanRows is used in a non-standard way and AutoHeight is also used, as per one of my previous posts. I will update that post when I can demonstrate how I am using it.

I updated the v10 control and the new IsCellPartClipped method works just great on header cells (and presumably footer cells) now.

Thanks!