Dear all,
How to make part of the text in the cells to be URL or HyperLink?? so that it will trigger the function with the URL Value??
e.g. Trans. No: 1234567890
Before I am using below with the whole cell.
private void dtgSalesTransactionsList_AfterCellActivate(object sender, EventArgs e)
Sorry about that, I was referring to the directions in the earlier mentioned issue. I'll explain step-by-step what I'm doing, so I don't miss anything.
So, I added the ultraformattedlinklabel onto the ultragrid, then enter the ultrawingrid designer of the application. I open up the column, and select columns, then I select the specific column I would like to have a link (later I'd like to have it call a separate method, using the link clicked method). Then I add the ultraFormattedLinkLabel onto this specific column's EditorComponent.
This part alone is where I've traced the error of data not showing up. The ultra grid loads the headers, but it has none of the data that goes into the columns. So, when I run the program, the only thing that shows up is the header for the data, and the ultraFormattedLinkLabel; if I haven't set it's visibility to false. Either way, it doesn't show the data. Another thing about the column, it is bound to a dataset, which may or may not be causing this issue. I'm not familiar enough to say, definitively. Hope this helps explain it a little better.
Hi Tomegen,
I'm having some trouble understanding you. What do you mean by "it hides everything in the form"?
Are you saying that all of the controls on the form disappear? I can't imagine any way that the UltraFormattedTextEditor could cause that. Sounds like maybe your project has mixed references or has become corrupted somehow.
Howdy, I'm new to infragistics and .Net, bad start. I'm trying to do this with a column of data bound to a database source. When I use the ultraformattedlinklabel on the ultragrid form, it hides everything in the form. I've set it up as an editor component, and have had no success. So, to clarify:I've created a the above methods, specified to the column I'm working with. And have added the UltraformattedLinkLabel on the form. I will eventually want to filter which row values get initialized as links, but for now just getting the data to show up while utilizing the UltraFormattedLinklLabel would be grand. Hope you can help, this is the only place I've found an example close to what I would like to do!
Hi,
There isn't much to it. I've attached a sample here with a simple grid on a form bound to an UltraDataSource with a single string column.The code looks like this:
private void Form1_Load(object sender, EventArgs e) { this.ultraDataSource1.Rows.Add(new object[] { "Trans. No: <a href = \"100\">100</a>" }); this.ultraDataSource1.Rows.Add(new object[] { "Trans. No: <a href = \"200\">200</a>" }); this.ultraDataSource1.Rows.Add(new object[] { "Trans. No: <a href = \"300\">300</a>" }); this.ultraDataSource1.Rows.Add(new object[] { "Trans. No: <a href = \"400\">400</a>" }); } private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand rootBand = layout.Bands[0]; rootBand.Columns["Column 0"].EditorComponent = this.ultraFormattedLinkLabel1; } private void ultraFormattedLinkLabel1_LinkClicked(object sender, Infragistics.Win.FormattedLinkLabel.LinkClickedEventArgs e) { Infragistics.Win.UltraMessageBox.UltraMessageBoxManager.Show(this, e.LinkRef, "Link Clicked"); }
Could you describe the steps or any sample code??
(1) place an UltraFormattedLinkLabel on the form
(2) attach it to the grid column using the EditorComponent property of the column.
(3) put the text "Trans No: 123456" you want in for the URL
(4) Any sample code in LinkClicked event of the UltraFormattedLinkLabel