all groups > dotnet windows forms > august 2005 >
You're in the

dotnet windows forms

group:

How to get the selected co value?


How to get the selected co value? John Britto
8/14/2005 10:35:10 PM
dotnet windows forms: Hi Guys,

I'm creating one or more dynamic datagrids in a form.
I have attached a contextment to the datagrid.
On selection of one menu item I want to get the first colum's value of the
selected row.
How to I do that?

thx for ur help
John

RE: How to get the selected co value? johncs
8/17/2005 5:01:04 AM
You need code like

DataGrid.HitTest hti = dgEnqs.HitTest(e.X,e.Y);

in the MouseMove event handler for the DataGrid. Then in the menu select
event handler there needs to be

string RequiredData = (string)dataGridName[hti.Row,0]

--
John Carrick Smith
============


[quoted text, click to view]
AddThis Social Bookmark Button