Showing only first part of the field in datagrid

Discussion in 'ASP .Net Datagrid Control' started by Arbajram, Jun 15, 2004.

  1. Arbajram

    Arbajram Guest


    I have a XML file as datasource, and I bind it to datagrid.
    Size of one of the columns in the dataset is quite long and I would like to
    show only 20-30 characters in the datagrid (witk link "more"). How can it
    be done?

    Thx in advance
    Arbajram, Jun 15, 2004
    1. Advertisements

  2. Armin,

    Make a template column including a control for the text and a link for
    "more". Make a databind expression for the text that will clip the text and
    make a databind expression for the link's "Visible" property that will
    return True if the text was clipped.

    Eliyahu Goldin, Jun 15, 2004
    1. Advertisements

  3. Arbajram

    Arbajram Guest

    Thx very much.
    That's exactly what I've been found out.

    Best regards
    Arbajram, Jun 17, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.