Results 1 to 3 of 3

Thread: Datagrid ID

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2003
    Location
    Georgia
    Posts
    32

    Datagrid ID

    I am new to .Net. I have used VB for several years, but I can't find out what I am doing wrong. I know it is something stupid.

    VB Code:
    1. Sub BindTranslationGrid(ByVal e As DataGridItemEventArgs)
    2.  
    3.         Dim ID As String = CType(dgSearchConfiguration.DataKeys(e.Item.ItemIndex), String)
    4.  
    5.          txtError.Text = ID
    6.    
    7. End Sub
    8.  
    9. HTML
    10.  
    11. <asp:datagrid id="dgSearchConfiguration" style="Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 224px"
    12.                 runat="server" DataKeyField="Src ID" Font-Size="Smaller">
    13.     <AlternatingItemStyle BackColor="#E0E0E0"></AlternatingItemStyle>
    14.     <HeaderStyle Font-Bold="True" BackColor="#E0E0E0"></HeaderStyle>
    15.                 <Columns>
    16.     <asp:ButtonColumn ButtonType="LinkButton" Text="Translations"></asp:ButtonColumn>
    17.                 </Columns>
    18. </asp:datagrid>
    Last edited by odamsr; Dec 12th, 2005 at 10:15 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width