Adding Multiple values to DataGrid HyperLinkColumn dynamically

Discussion in 'ASP .Net Datagrid Control' started by vtreddy, Nov 6, 2003.

  1. vtreddy

    vtreddy Guest

    Hi all,

    Please find the code below, here I would like to bc1 column count to the DataNavigateUrlFormatString, can any one help on this,

    BoundColumn bc1 = new BoundColumn();

    bc1.HeaderText="Count";

    bc1.DataField="Count";

    appsummaryDataGrid.Columns.Add(bc1);

    HyperLinkColumn hc1 = new HyperLinkColumn();

    hc1.DataTextField="SMS Site";

    hc1.DataTextFormatString="{0}";

    hc1.DataNavigateUrlField="SMS Site";

    hc1.DataNavigateUrlFormatString="ApplicationGroupBy.aspx?variable="+appname+"&SITE={0}";

    hc1.HeaderText="SMS Hyper Link ";

    appsummaryDataGrid.Columns.Add (hc1);



    Thanks,

    Thirupathi
     
    vtreddy, Nov 6, 2003
    #1
    1. Advertisements

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. vtreddy
    Replies:
    0
    Views:
    2,260
    vtreddy
    Nov 6, 2003
  2. TJS
    Replies:
    2
    Views:
    2,580
  3. =?Utf-8?B?RGF2ZQ==?=

    Can't apply CSS class to DataGrid's HyperlinkColumn?

    =?Utf-8?B?RGF2ZQ==?=, Feb 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,188
    Martin Dechev
    Feb 27, 2004
  4. Rob Meade

    Datagrid - HyperLinkColumn

    Rob Meade, Aug 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    707
    Rob Meade
    Aug 9, 2004
  5. Roy
    Replies:
    1
    Views:
    1,496
  6. Davef

    Pass 2 values in the HyperLinkColumn

    Davef, Jul 30, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    201
    Davef
    Jul 30, 2003
  7. Replies:
    1
    Views:
    1,320
    Teemu Keiski
    May 12, 2007
  8. Jimbo Jim

    additional HyperLinkColumn querystring values

    Jimbo Jim, Sep 28, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    236
    Jimbo Jim
    Sep 28, 2005
Loading...