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

    Hi,

    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
    Armin
     
    Arbajram, Jun 15, 2004
    #1
    1. Advertising

  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

    "Arbajram" <> wrote in message
    news:evaq$...
    > Hi,
    >
    > 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
    > Armin
    >
    >
     
    Eliyahu Goldin, Jun 15, 2004
    #2
    1. Advertising

  3. Arbajram

    Arbajram Guest

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

    Best regards
    Armin

    "Eliyahu Goldin" <> wrote in message
    news:...
    > 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
    >
    > "Arbajram" <> wrote in message
    > news:evaq$...
    > > Hi,
    > >
    > > 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
    > > Armin
    > >
    > >

    >
    >
     
    Arbajram, Jun 17, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ray Booysen
    Replies:
    2
    Views:
    654
    Ray Booysen
    Mar 28, 2006
  2. Replies:
    3
    Views:
    975
    Mark Parnell
    Oct 14, 2005
  3. Edward Harford

    First record of datagrid not showing

    Edward Harford, Jul 20, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    147
    Edward Harford
    Jul 22, 2004
  4. Rob

    Can I use only part of Field

    Rob, Oct 20, 2004, in forum: ASP General
    Replies:
    1
    Views:
    110
    Bob Barrows [MVP]
    Oct 20, 2004
  5. Simon Gare

    Showing only part of data in dynamic field

    Simon Gare, Oct 22, 2005, in forum: ASP General
    Replies:
    1
    Views:
    103
Loading...

Share This Page