找回密码
 立即注册

QQ登录

只需一步,快速开始

sean03424014

注册会员

8

主题

23

帖子

61

积分

注册会员

积分
61

活字格认证

sean03424014
注册会员   /  发表于:2015-4-9 10:34  /   查看:5797  /  回复:5
spread升级spread7.0,然后画面上有一个dropdownlist选择一条数据,然后到spread中找到这条数据所在的行,FpSpread1.Sheets(0).TopRow =选择数据对应的行数。。
spread最上面表示的行还是原来的,没有变成dropdownlist选择数据所对应的的行。。。。

5 个回复

倒序浏览
sean03424014
注册会员   /  发表于:2015-4-9 14:44:00
沙发
怎么没有人啊????
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-4-9 15:50:00
板凳
回复 1楼sean03424014的帖子

请问这个问题和链接需求是否一致?http://gcdn.gcpowertools.com.cn/showtopic-16502.html
回复 使用道具 举报
sean03424014
注册会员   /  发表于:2015-4-9 16:54:00
地板
回复 3楼iceman的帖子

一致啊
回复 使用道具 举报
sean03424014
注册会员   /  发表于:2015-4-9 16:57:00
5#
下面是原代码
    Private Sub cmbPageCount_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbPageCount.SelectedIndexChanged
        Try
            Dim iSelectCount As Integer = 0

            For iRow As Integer = 0 To FpSpread1.Sheets(0).RowCount - 1 Step 1
                If Me.cmbPageCount.SelectedValue = FpSpread1.Sheets(0).Cells(iRow, 0).Value Then
                    iSelectCount = iRow
                    Exit For
                End If
            Next
            FpSpread1.Sheets(0).TopRow = iSelectCount
            Dim strScript1 As String = ScriptHelper.GetBetweenScriptTag("{0}")
            strScript1 = String.Format(strScript1, "GetHiddenValue();")
            ClientScript.RegisterStartupScript(Page.GetType(), "DataChengeCheck", strScript1)
        Catch ex As Exception
            ClsLogControl.OutPutLog(ClsLogControl.ERR_LOG, strWindowID, "cmbPageCount_SelectedIndexChanged", ex.ToString)
            DisplayErrorPage(strWindowID, MyBase.getMessage("9999"), ex)
        End Try
    End Sub

function GetHiddenValue()
{
        if(typeof(window.document.forms[0].txtChengeData) =='object')
                {
                        ChengeData=window.document.forms[0].txtChengeData.value;
                }
}
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-4-9 17:13:00
6#
回复 5楼sean03424014的帖子

那我们在 http://gcdn.gcpowertools.com.cn/showtopic-16506.html 中讨论这个问题,本帖如果有其他问题还需要交流,可以继续跟进。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部