Adding Multiple values to DataGrid HyperLinkColumn dynamically

Discussion in 'ASP .Net' 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. 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. TJS
    Replies:
    2
    Views:
    2,291
  2. Roy
    Replies:
    1
    Views:
    1,340
  3. Davef

    Pass 2 values in the HyperLinkColumn

    Davef, Jul 30, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    128
    Davef
    Jul 30, 2003
  4. vtreddy

    Adding Multiple values to DataGrid HyperLinkColumn dynamically

    vtreddy, Nov 6, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    172
    vtreddy
    Nov 6, 2003
  5. Replies:
    1
    Views:
    1,142
    Teemu Keiski
    May 12, 2007
Loading...

Share This Page