This is a migrated thread and some comments may be shown as answers.

Get the Current cell Location

3 Answers 175 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lalitha
Top achievements
Rank 1
Lalitha asked on 20 Jun 2008, 02:09 PM

I am using Winforms Gridview, in that i need to take the current cell Position.
(ie) Location  x, y  of the current cell.)

I tried these following Codes,

GvItem.MasterGridViewInfo.GridViewElement.CurrentCell.Location.X

GvItem.MasterGridViewInfo.GridViewElement.CurrentCell.Location.Y)

But i  got Only 0,0.

Which property can i  use for this?

LALITHA

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 23 Jun 2008, 03:21 PM
Hello Lalitha,

Thank you for writing.

There is a CellMouseMove event you can use to tell whether you are moving the mouse into the current cell of RadGridView. Here is a sample code:

   void radGridView1_CellMouseMove(object sender, MouseEventArgs e)
   {
            if (this.radGridView1.CurrentCell.ControlBoundingRectangle.Contains(e.Location))
            {
                Console.WriteLine(e.Location);
            }
     
   }

The code above prints in the output window the location of the mouse in case we are moving the mouse over the current cell.

I hope this helps, If you have any other questions I will be happy to answer you.

Sincerely yours,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Vishwanath
Top achievements
Rank 1
answered on 21 Mar 2012, 03:20 PM
NO METHOD CONTROLBOUNDINGRECTANGLE IN RADVIEWCONTROL (WEB, SILVERLIGHT 4)
0
Stefan
Telerik team
answered on 26 Mar 2012, 08:10 AM
Hi Vishwanath.

Thank you for writing.

This forum concerns RadControls for WinForms suite, rather than RadControls for Silverlight. Please address your question in the appropriate forums, so you can get an adequate answer.
 
All the best,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Lalitha
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Vishwanath
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or