Home Forums WinForms controls Xceed Grid for WinForms Hyperlink column Reply To: Hyperlink column

Xceed Support
Member
Post count: 5658

Hi Morgan,

The following should address your requirements:

LinkLabel label = new LinkLabel();

            CellViewerManager cellViewerManager = new CellViewerManager( label, “Text” );

            starterGrid.Columns[ “ProductName” ].CellViewerManager = cellViewerManager;

            starterGrid.Columns[ “ProductName” ].ReadOnly = true;

            int count = starterGrid.DataRows.Count;

            for( int i = 0; i < count; ++i )

            {

                starterGrid.DataRows[ i ].Cells[ “ProductName” ].MouseEnter += new EventHandler( StarterGrid_MouseEnter );

                starterGrid.DataRows[ i ].Cells[ “ProductName” ].MouseLeave += new EventHandler( StarterGrid_MouseLeave );

            }

void StarterGrid_MouseLeave( object sender, EventArgs e )

        {

            this.starterGrid.Cursor = Cursors.Arrow;

        }

 

        void StarterGrid_MouseEnter( object sender, EventArgs e )

        {

            this.starterGrid.Cursor = Cursors.Hand;

        }

Imported from legacy forums. Posted by Mohamed [Xceed] (had 465 views)