Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
705
how to properly use Column.Style.URL
posted

I have a grid in a C# winform app that when I initialize it, I set the property of a column to this:

e.Layout.Bands[0].Columns["MyURL"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.URL;

Now I've read where whatever is the cell content for that cell will be given a URL styling so I assume I need to form the link before the row is painted since I am taking cell data and appending it to this link (in a querystring).

I was trying the InitializeRow event with this code but it hasn't been working. 

string

 

myId = e.Row.Cells["MyURL"].Value.ToString();

e.Row.Cells[

"MyURL"].Value = http://mywebsite.com/test.asp?id= + myId;

Do I need to use a different event here?

 

Parents Reply Children
No Data