Skip to content

Commit

Permalink
Merge pull request IDEMSInternational#8699 from derekagorhom/Edit_branch
Browse files Browse the repository at this point in the history
Fixed Bug in the Edit Cell dialog
  • Loading branch information
N-thony authored Jan 11, 2024
2 parents 819984c + 4af0ec6 commit 7e59968
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions instat/UserControls/DataGrid/ReoGrid/ucrReoGrid.vb
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ Public MustInherit Class ucrReoGrid
Private Function GetRowIndex(currWorkSheet As Worksheet, strRowName As String) As Integer
If currWorkSheet IsNot Nothing Then
For i As Integer = 0 To currWorkSheet.Rows - 1
Dim strCol As String = currWorkSheet.RowHeaders(i).Text
If strCol = strRowName Then
Dim strCol As String = currWorkSheet.RowHeaders(i).Text - 1
If CInt(strCol) = CInt(strRowName) Then
Return i
End If
Next
Expand All @@ -234,7 +234,7 @@ Public MustInherit Class ucrReoGrid
If strColumnHeader.Contains("(") Then
strColumnHeader = strColumnHeader.Split("(")(0)
End If
Dim iRowIndex = GetRowIndex(grdData.CurrentWorksheet, iRow) + 1
Dim iRowIndex = GetRowIndex(grdData.CurrentWorksheet, iRow)
If strColumnHeader.Trim = strColumn _
AndAlso iRowIndex > -1 Then
Return grdData.CurrentWorksheet(iRowIndex, i).ToString()
Expand Down

0 comments on commit 7e59968

Please sign in to comment.