Welcome to the Xceed Community | Help
Community Search  
More Search Options

How to get the the paricular cell value of a selected row??

Sort Posts: Previous Next
  •  08-21-2008, 5:01 AM Post no. 14282

    How to get the the paricular cell value of a selected row??

    Hi,

    I have used the XceedDataGrid and populated the grid with the DataSet. Now to Keep the things simple i just wanted to get the value of a cell in the selected row of the when users click on a particular row...???

  •  08-21-2008, 12:14 PM Post no. 14322 in reply to 14282

    Re: How to get the the paricular cell value of a selected row??

    Are you inquiring about the .NET Grid or the WPF DataGrid?  I ask because you have added "xbap" to your tags, which is relevant to the WPF grid.

    If you're in .NET, use the CurrentCellChanged event, and get the value of the CurrentCell in the event handler.

    e.g.:

    private void Form1_Load( object sender, EventArgs e )

    {

        gridControl1.CurrentCellChanged += new EventHandler( gridControl1_CurrentCellChanged );

    }

    void gridControl1_CurrentCellChanged( object sender, EventArgs e )

    {

        Debug.WriteLine( gridControl1.CurrentCell.Value.ToString() );

    }

    If you're in WPF, please repost your question on the WPF forums.


    André
    Software Developer
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.