datagrid item selection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eddie B.

    #1

    datagrid item selection

    How do you return the value of a row selected from the datagrid using c#?
    All that is displayed in intellisense is IsSelected which returns if a
    specific row is selected.

    Thanks!


  • Steven Wood

    #2
    Re: datagrid item selection


    "Eddie B." <ebranch@chno la-research.org> wrote in message
    news:%23fW8CU%2 3dDHA.3708@tk2m sftngp13.phx.gb l...[color=blue]
    > How do you return the value of a row selected from the datagrid using c#?[/color]

    DataRow dr =
    ((DataRowView)B indingContext[MyDataGrid.Data Source].Current).Row;

    ---
    Steven Wood


    Comment

    Working...