Hi,

I have a grid view that I am trying to get to display a tooltip on each row so that it will display the number of days between the admit date and present date. I know how to make that calculation, but for some reason, known of the cell values will return a value. Here is the actual grid:

<asp:GridView ID="WorkList" EmptyDataRowStyle-Font-Size="medium"
EmptyDataRowStyle-HorizontalAlign="center" EmptyDataText="No Records Found" CssClass="tableStyle" PagerStyle-CssClass ="pagerRow"
runat="server" AllowPaging="True" AutoGenerateColumns="False" AlternatingRowStyle-CssClass="true"
CellPadding="2" ForeColor="#333333" AllowSorting="True" OnSorting="Sort_StayGrid"
OnRowDataBound="GrdWorkList_RowDataBound" PageSize="30" OnPageIndexChanging="WorkList_PageIndexChanging" Font-Bold="False" PagerSettings-Position="TopAndBottom" Width="100%">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="LightSteelBlue" ForeColor="DarkBlue" HorizontalAlign="Center" Font-Bold="True" Font-Size="Larger" CssClass="pagerRow"/>
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"/>
<AlternatingRowStyle BackColor="White" CssClass="true" />
<Columns>

<asp:TemplateField HeaderText="Patient Name" SortExpression="patientName">
<ItemTemplate>
<asp:LinkButton ID="postStayBtn" CommandName="reviewItem" OnCommand="Command_Click"
runat="server" CommandArgument='<%# Eval("checkinId") %>' CssClass="noHistory">
<asp:Label ID="patientName" Text='<%# gov.va.medora.numi.utilities.WebUtils.TruncateStr((string)Eval("patientName"),15) %>' runat="server" title='<%# Eval("patientName") %>' CssClass="tooltip"/>
</asp:LinkButton></ItemTemplate><HeaderStyle Width="113px" />
<ItemStyle Width="113px"/>
</asp:TemplateField>

<asp:TemplateField HeaderText="Admit Date" SortExpression="admitDate">
<ItemTemplate>
<asp:Label ID="admitTimestampLabel" Text='<%# gov.va.medora.numi.utilities.WebUtils.DisplayDateString((DateTime)Eval("admitDate")) %>' runat="server" ToolTip="Admit Timestamp" />
</ItemTemplate>
<HeaderStyle Width="42px" />
<ItemStyle Width="42px" />
</asp:TemplateField>

<asp:TemplateField HeaderText="D/C Date" SortExpression="DischargeDate">
<ItemTemplate>
<asp:Label ID="dischargeTimestamp" Text='<%# gov.va.medora.numi.utilities.WebUtils.DisplayDateString((DateTime)Eval("DischargeDate")) %>' runat="server" ToolTip="Discharge Date"/>
</ItemTemplate>
<HeaderStyle Width="42px" />
<ItemStyle Width="42px" />
</asp:TemplateField>
</Columns>
<EmptyDataRowStyle Font-Size="Medium" HorizontalAlign="Center" />
<PagerSettings FirstPageText="First Page" LastPageText="Last Page" Mode="NextPreviousFirstLast" NextPageText="Next" PreviousPageText="Previous" />
</asp:GridView>


I The code behind looks like this:

protected void GrdWorkList_RowDataBound(Object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//14.0 SDD 6.2.2.2.2 Day Since Admission as a ToolTip EDD
e.Row.ToolTip = e.Row.Cells[0] + "Array 0" + e.Row.Cells[1].Text + "Array 1" + e.Row.Cells[2].Text + "Array 2" + e.Row.Cells[3].Text + "Array 3" + e.Row.Cells[4].Text + "Array 4" + e.Row.Cells[5].Text + "Array 5" + e.Row.Cells[6].Text + "Array 6" + e.Row.Cells[7].Text + "Array 7" + e.Row.Cells[8].Text + "Array 8" + e.Row.Cells[9].Text + "Array 9";
//14.0 SDD 6.2.2.2.2 End EDD
DropDownList ddlNurseReviewer = (DropDownList)e.Row.FindControl("ddlNurseReviewer");
Label lblAssignedReviewer = (Label)e.Row.FindControl("assignedTo");
Label lblAssignedReviewerID = (Label)e.Row.FindControl("lblAssignedToId");

if (ddlNurseReviewer != null)
{
ListItem select = new ListItem("", "-1");
ddlNurseReviewer.DataSource = UserSession.SessionLookups[SessionKeys.CREATE_AND_CONDUCT_PRIMARY_REVIEW_LIST]; //lookupValues;
ddlNurseReviewer.Items.Add(select);
ddlNurseReviewer.AppendDataBoundItems = true;
ddlNurseReviewer.DataTextField = "TextField";
ddlNurseReviewer.DataValueField = "TextFieldID";
ddlNurseReviewer.DataBind();
if (lblAssignedReviewerID != null)
{
ddlNurseReviewer.SelectedValue = lblAssignedReviewerID.Text;
}
}
}

return;
}

Notice, that as a test, all I'm doing is trying to make it display the values of the first 9 cells. For some reason, when I hover over a row, all I get displayed is "ARRAY 1 ARRAY1 ARRAY2 etc., no cell values are displayed.

What Am I doing wrong ?