Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9246169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:25:57+00:00 2026-06-18T09:25:57+00:00

I have an UltraGrid which is bound to a DataTable with two columns (Key,

  • 0

I have an UltraGrid which is bound to a DataTable with two columns (Key, Value). I have added 10 rows into the DataTable, and now the 11th row has a URL in the Value column. The URL value gets added fine, but it doesn’t work like a hyperlink. To make it work as a hyperlink, how do I need to add this row into the UltraGrid?
My code:

DataTable dt = new DataTable();
dt.Columns.Add("Key", typeof(string));
dt.Columns.Add("Value", typeof(string));
ultraGrid.DataSource = dt;

foreach (KeyValuePair<string, string> kvp in dictionary)
{
    dt.Rows.Add(kvp.Key, kvp.Value);
}

// Adding the row which has the URL value.
string url = "SomeURL";
Uri hyperLink = new Uri(url);
dt.Rows.Add("Click this", hyperLink);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:25:58+00:00Added an answer on June 18, 2026 at 9:25 am

    While the answer given by U1199880 point to a partially correct solution there is a problem applying that style to the whole column. Every cell in the column will be treated as a link.

    Instead you need to intercept the InitializeRow event and check if the current cell of the current row is a valid URI. Then change the cell Style property to the ColumnStyle.URL

    private void grd_InitializeRow(object sender, InitializeRowEventArgs e)
    {
        if (e.ReInitialize == false)
        {
            UltraGridColumn c = e.Row.Band.Columns["Value"];
            string link = e.Row.GetCellValue(c).ToString();
            if (Uri.IsWellFormedUriString(link, UriKind.Absolute))
                e.Row.Cells["Value"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.URL;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ultragrid which is bound to a datatable, i update datatable in
I have an ultragrid with lots of rows, new rows are added to the
I have an UltraGrid that is bound to some data from my database. Occasionally
how can i have a ultragrid with 3-way sorting on every columns? I mean
I am using an ultragrid and inside i have values that i load into
I have a UltraGrid bound to a IList<MyDomainObject> . In MyDomainObject there is a
Have a linking (or ref) table which has a dual primary key. Need to
I want to get all rows of a ultragrid even deleted rows. I have
Have added designer extensions to EDMX designer which allow me to specify additional information
Say I have an Infragistic UltraGrid with columns Foo and Bar . Is it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.