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

User (Old forums)
Post count: 23064


I have another quick question…

I am in a class that inherits of Xceed.Grid.Viewers.CellViewerManager.

How can I set the mouse cursor from there? I don’t think I can access my GridControl instance as it is done in the example… 

This is where I am:

public class MyCellViewerManager : Xceed.Grid.Viewers.CellViewerManager


    public MyCellViewerManager() :

        base(new LinkLabel(), “Text”)


        this.SettingControlValue += new global::Xceed.Grid.Viewers.CellViewerEventHandler(MyCellViewerManager_SettingControlValue);


    void MyCellViewerManager_SettingControlValue(object sender, Xceed.Grid.Viewers.CellViewerEventArgs e)


        // Just in case, remove handlers to avoid double calls

        e.Cell.MouseLeave -= new EventHandler(Cell_MouseLeave);

        e.Cell.MouseEnter -= new EventHandler(Cell_MouseEnter);

        e.Cell.Click -= new System.EventHandler(Cell_Click);

        e.Cell.Click += new System.EventHandler(Cell_Click);     

        e.Cell.MouseEnter += new EventHandler(Cell_MouseEnter);

        e.Cell.MouseLeave += new EventHandler(Cell_MouseLeave);



    void Cell_MouseEnter(object sender, EventArgs e)


        // Change cursor here


    void Cell_MouseLeave(object sender, EventArgs e)


        // Change cursor back


    void Cell_Click(object sender, System.EventArgs e)


        // Open link 🙂




Thanks a lot!


Imported from legacy forums. Posted by Marie4 (had 487 views)