May 18, 2005 #1 gcole Programmer Aug 2, 2000 390 US I have a sumbit button in my datagrid. When I trap the SelectedIndexChanged event, how do I get the value of what was selected? Thanks
I have a sumbit button in my datagrid. When I trap the SelectedIndexChanged event, how do I get the value of what was selected? Thanks
May 19, 2005 #2 NeilTrain Programmer May 27, 2003 275 US do you mean the Item that is CURRENTLY selected or was PREVIOUSLY selected? For the Current you would use "myDataGrid.SelectedItem" to access the selected Item To access the previously selected Item, you need to use the "BeforeSelect" event to access the Item that is about to lose its selection Upvote 0 Downvote
do you mean the Item that is CURRENTLY selected or was PREVIOUSLY selected? For the Current you would use "myDataGrid.SelectedItem" to access the selected Item To access the previously selected Item, you need to use the "BeforeSelect" event to access the Item that is about to lose its selection