Question : clickable column

This code below makes Name column in my grid all clickable and redirects, but what I need is only when loginPassword is null and ((bool)Session["Account"] == true)
I tried to put that in MakeLInk code below and I added this code but it only makes one row clickable even though I have two null password rows(records)
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item.ItemType == GridItemType.AlternatingItem ||
            e.Item.ItemType == GridItemType.Item)
        {

            Password = DataBinder.Eval(e.Item.DataItem, "loginPassword").ToString();

            GridDataItem dataItem = (GridDataItem)e.Item;

            if (Password == "")

                SetPassword = "";
           
        }  
    }
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
<radG:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellPadding="4"
            DataSourceID="dsManager" ForeColor="#333333" GridLines="None" 
            Width="600px"  OnItemCommand = "RadGrid1_ItemCommand"   OnItemDataBound="RadGrid1_ItemDataBound"
            >
            <MasterTableView  DataKeyNames="ID,displayName,loginPassword"
                DataSourceID="dsManager"  EditMode="InPlace">
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="False">
                    <HeaderStyle Width="19px" />
                </ExpandCollapseColumn>
                <Columns>
                     
                    <radG:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/images/edit.gif" CommandName="Edit"
                        Text="Update" UniqueName="Edit" /> 
                                               
                       <radG:GridBoundColumn DataField="profileID" HeaderText="ID" SortExpression="ID"
                          UniqueName="ID" Visible="false">
                      </radG:GridBoundColumn>
                      
                      
                      <radG:GridTemplateColumn HeaderText="Name" UniqueName="displayName">
                            <ItemTemplate>
                                <%# MakeLink(Convert.ToString(DataBinder.Eval(Container.DataItem, "displayName")))%>
                            </ItemTemplate>
                      </radG:GridTemplateColumn>
                     
                    
                    <radG:GridTemplateColumn HeaderText="Password" SortExpression="loginPassword"
                          UniqueName="loginPassword">
                          <ItemTemplate>
                              <asp:Label runat="server" ID="lblloginPassword" Text='<%# new string(char.Parse("*"),Eval("loginPassword").ToString().Length) %>'></asp:Label>
                          </ItemTemplate>
                        <EditItemTemplate>
                              <asp:TextBox runat="server" ID="txtlogin" TextMode="Password" value='<%# Eval("loginPassword") %>' ></asp:TextBox>
                          </EditItemTemplate>
                      </radG:GridTemplateColumn>
  
code behind
public string MakeLink(string displayName)
    {
        string returnValue;


        if ((bool)Session["Account"] == true)
            returnValue = "<a href='myaccount.aspx?ID=" + Session["ID"] + "' Target='_blank' >" + displayName + "</a>";
        else
            returnValue = "&nbsp;";
        return returnValue;
    }

Answer : clickable column

You have to buy licenses for each computer.  THe 5 user license is not licensed for 5 computers but allows 5 users to connect to the engine.   You'll need a 5 user license on each machine unless you can get a single user license (I'm not sure what's available from a license key standpoint).  
Which company did you talk to?  I would suggest contacting Pervasive directly (1-800-287-4383 in the US).  They should be able to straighten you out.  

One more item of note, the PSQL v10 engine on the laptop may have problems connecting to the server if it's running PSQL v8.  Ideally you would upgrade all clients and the server to PSQL V10.  
Random Solutions  
 
programming4us programming4us