The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi there,
I have a databound grid to which I have added to the GridBoundColumn collection an item of cellType LinkLabelCell. I set the mapping name and the hyperlink shows correctly within the grid. My problem is that I do not want to show the hyperlink text. I want something similar to the LinkLabelCells example:
gridControl1(rowIndex, 2).CellType = "LinkLabelCell"
gridControl1(rowIndex, 2).Text = "Windows Forms FAQ"
gridControl1(rowIndex, 2).Tag = "http://www.syncfusion.com/FAQ/WinForms"
whereby the label "Windows Forms FAQ" is shown and when clicked it goes to the hyperlink "http://www.syncfusion.com/FAQ/WinForms"
Thanks
Iain
ADAdministrator Syncfusion Team December 2, 2004 08:41 AM UTC
I thnk you will have to handle the grid.Model.QueryCellInfo event. In the handler, if e.RowIndex > 0 && e.ColIndex points to your linklabel column, then explicitly set e.Style.Text and e.Style.Tag to be what you want. You can probably use the initial setting of e.Style.Text to decide which link you need to put back into e.Style.Text and e.Style.Tag.
IAIainDecember 2, 2004 10:17 AM UTC
Hi,
Thanks for the quick reply. It''s my 1st day working on the grid so I may have got things wrong but I can''t seem to find the grid.model.QueryCellInfo event. Does this exist on the DataBoundGrid?
Thanks
Iain
>I thnk you will have to handle the grid.Model.QueryCellInfo event. In the handler, if e.RowIndex > 0 && e.ColIndex points to your linklabel column, then explicitly set e.Style.Text and e.Style.Tag to be what you want. You can probably use the initial setting of e.Style.Text to decide which link you need to put back into e.Style.Text and e.Style.Tag.
ADAdministrator Syncfusion Team December 2, 2004 11:37 AM UTC
Yes. It is a member of the Model object, not the grid directly. So, to subscribe to it you use,
//C#
this.grid.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(model_QueryCellInfo);
''VB
AddHandler Me.grid.Model.QueryCellInfo, addressof model_QueryCellInfo