Get the Current cell Location

4 posts, 0 answers
  1. Lalitha
    Lalitha avatar
    4 posts
    Member since:
    Jun 2008

    Posted 20 Jun 2008 Link to this post

    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

  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 23 Jun 2008 Link to this post

    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
  3. Vishwanath
    Vishwanath avatar
    1 posts
    Member since:
    Mar 2012

    Posted 21 Mar 2012 Link to this post

    NO METHOD CONTROLBOUNDINGRECTANGLE IN RADVIEWCONTROL (WEB, SILVERLIGHT 4)
  4. Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 26 Mar 2012 Link to this post

    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 >>
Back to Top