GridGroupingControl hovering over a cell should highlight whole raw

Hello,
 
In a way I want to reproduce the behaviour of onMouseOver and onMouseOut html behaviour but in gridgroupingcontrol.
 
Any help much appreciated.

1 Reply

VK Vinish Kumar K Syncfusion Team December 12, 2012 04:44 PM UTC

Hi Gaukhar Massabayeva,

 

Thank you for your interested in Syncfusion products.


We have implemented the simple and better sample to highlighted the whole row while mouse hovering in cell.  You can use CellMouseHoverEnter and CellMouseHoverLeave events to achieve the desired behavior in GridGroupingControl.

 

   void TableControl_CellMouseHoverLeave(object sender, GridCellMouseEventArgs e)

        {

            this.gridGroupingControl1.TableControl.Selections.Clear();

        }

 

        void TableControl_CellMouseHoverEnter(object sender, GridCellMouseEventArgs e)

        {

            int colCount = this.gridGroupingControl1.TableModel.ColCount;

            this.gridGroupingControl1.TableControl.Selections.Add(GridRangeInfo.Cells(e.RowIndex, 0, e.RowIndex, colCount));

        }


Please let me know if you have further concerns.


Regards,

Vinish.



Highlighted Entire row while mouse hover on cell_2188f1ec.zip

Loader.
Up arrow icon