Grid未显示在另一个更新面板gridview rowcommand上的更新中 [英] Grid is not showing into a update on another update panel gridview rowcommand

查看:66
本文介绍了Grid未显示在另一个更新面板gridview rowcommand上的更新中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

protected void grdvwPatientDetails_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Edit")
            {
                if (Convert.ToInt32(e.CommandArgument) != 0)
                {
                    int patientMedicalId = Convert.ToInt32(e.CommandArgument);
                    var PatientMedicalRecords = objPMBBL.getPatientMedicalRecordsById(patientMedicalId);
                    if (PatientMedicalRecords != null)
                    {
                        BindNewPatientDetails(PatientMedicalRecords.PatientId.Value);

                        txtbpSys.Text = PatientMedicalRecords.BPSystolic;
                        txtbpDias.Text = PatientMedicalRecords.BPDiastolic;
                        txttemp.Text = PatientMedicalRecords.Temperature;
                        txtpuls.Text = PatientMedicalRecords.Pulse;
                        txtrespRate.Text = PatientMedicalRecords.RespiratoryRate;
                        txtweght.Text = PatientMedicalRecords.Weight.ToString();
                        txtheight.Text = PatientMedicalRecords.Height.ToString();

                        BindSymptom(PatientMedicalRecords.Id);
                        UpdatePanel_newMedicleRecord.Update();
                    }
                }
            }
        }

;

每个gridview都通过以下方法绑定



;
every gridview is binding by the below method

private void BindSymptom(int PMRId)
        {
            var PatientSymptomList = objPMBBL.getGetSymptomBY_PMD_idById(PMRId);
            if (PatientSymptomList.Count > 0)
            {
                grdSymtom.DataSource = PatientSymptomList;
                grdSymtom.DataBind();
                if (PatientSymptomList.Count > 0)
                    grdSymtom.HeaderRow.TableSection = TableRowSection.TableHeader;
            }
        }





但是当我在页面加载中调用所有带有静态值的网格绑定方法时它正在工作很好,但我想绑定所有网格行命令





紧急..如果有人有解决方案,请帮助



but when i call all the grid bind method with static value in page load it's working fine but i want to bind all grid in row command


it's urgent..if anyone have solution plz help

推荐答案

试试这个 http://www.c-sharpcorner.com/UploadFile/mahakgupta/a-simple-example-of-shopping-cart-with-ajax-and-Asp-Net/ [ ^ ]


这篇关于Grid未显示在另一个更新面板gridview rowcommand上的更新中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆