HyperLinkColumn tab stop

Posted on 2005-04-12
Last Modified: 2010-04-07
I have a datagrind column that contains a hyperlink column and a template column that is a text box for quantity.  Is there anyway to set the tab stop to false for the hyperlink column so when the user hits tab, it goes to the next text box?
Question by:ChadMarsh
    1 Comment
    LVL 18

    Accepted Solution

    In ItemDataBound Event of your DataGrid write down some code like following:

    private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
          switch( e.Item.ItemType )
                case ListItemType.Item:
                case ListItemType.AlternatingItem:
                      ( (HyperLink) e.Item.Cells[5].Controls[0] ).TabIndex = -1;                              
                      // Replace 5 with Column Number of your HyperLink Column..


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now