protected void MemberClaimHistoryGrid_OnItemCommand(Object sender, Telerik.Web.UI.GridCommandEventArgs eventArgs)
        {
            if (MercuryApplication == null)
            {
                return;
            }

            System.Data.DataTable claimLineTable = MemberClaimHistoryGrid_ClaimLineTable;


            if ((eventArgs.CommandName == "ExpandCollapse"))
            {
                Telerik.Web.UI.GridDataItem gridItem = (Telerik.Web.UI.GridDataItem)eventArgs.Item;

                Int64 claimId;


                if (Int64.TryParse(gridItem["ClaimId"].Text, out claimId))
                {
                    claimLineTable.Rows.Clear();

                    List <Mercury.Server.Application.ClaimLine> claimLines;

                    claimLines = MercuryApplication.ClaimLinesGet(claimId);

                    if (claimLines != null)
                    {
                        foreach (Mercury.Server.Application.ClaimLine currentDetail in claimLines)
                        {
                            String revenueInformation = "<span title=\"" + currentDetail.RevenueCodeName + "\">" + currentDetail.RevenueCode + "</span>";

                            String serviceInformation = "<span title=\"" + currentDetail.ProcedureCodeName + "\">" + currentDetail.ProcedureCode + "</span>";

                            String claimLineStatusInformation = "<span title=\"" + currentDetail.DenialReason + "\">" + currentDetail.Status + ((!String.IsNullOrEmpty(currentDetail.DenialReason)) ? "*" : String.Empty) + "</span>";

                            claimLineTable.Rows.Add(

                                currentDetail.ClaimId.ToString(),

                                currentDetail.Line.ToString(),

                                currentDetail.ServiceDateFrom.ToString("MM/dd/yyyy"),

                                currentDetail.ServiceDateThru.ToString("MM/dd/yyyy"),

                                claimLineStatusInformation,

                                currentDetail.ServicePlace,

                                (!String.IsNullOrEmpty(currentDetail.RevenueCode)) ? revenueInformation : "&nbsp",

                                currentDetail.RevenueCodeName,

                                (!String.IsNullOrEmpty(currentDetail.ProcedureCode)) ? serviceInformation : "&nbsp",

                                currentDetail.ProcedureCodeName,

                                currentDetail.ModifierCode1,

                                currentDetail.Units,

                                currentDetail.BilledAmount,

                                currentDetail.PaidAmount

                                );
                        }
                    }


                    MemberClaimHistoryGrid_ClaimLineTable = claimLineTable;

                    MemberClaimHistoryGrid.MasterTableView.DetailTables[0].DataSource = claimLineTable;
                }
            }

            return;
        }