Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
misc
exam.security
microsoft_update_catalog
msdn.annotations
msdn.drgui.discussion
msdn.duwamish
msdn.general
msdn.magazine
msdn.soaptoolkit
msdn.webservices
msdntraining
opsmgr.connectors
opsmgr.sp1
technet
technet.howtofeedback
technet.howtoneeds
technet.magazine
technet.technettalks
  
 
date: Mon, 13 Jun 2005 13:56:04 -0700,    group: microsoft.public.msdn.drgui.drguidotnet.discussion        back       


How to get value in a Windows Form DataGrid   
How do you access the value of a cell in a Windows form datagrid?

I know this is how you would do it using an ASP.NET datagrid:
DataGrid1.Items[1].Cells[1].Text

However, "Items" is not available in the Windows Forms datagrid.

Thanks,

Paule
date: Mon, 13 Jun 2005 13:56:04 -0700   author:   Paul Daly (MCP)

Re: How to get value in a Windows Form DataGrid   
Dim dgc As DataGridCell = datagrid1.CurrentCell
lblTest.Text = datagrid1.Item( dgc.RowNr, dgc.ColumnNr ).ToString()

snagged from another group. I was looking for same thing.

-- 

Patrick Sullivan, AA-BA, BA-IT

"Paul Daly (MCP)"  wrote in message
news:E3B5BD41-67B9-4603-8992-05E3DFC34AD0@microsoft.com...
> How do you access the value of a cell in a Windows form datagrid?
>
> I know this is how you would do it using an ASP.NET datagrid:
> DataGrid1.Items[1].Cells[1].Text
>
> However, "Items" is not available in the Windows Forms datagrid.
>
> Thanks,
>
> Paule
date: Mon, 22 Aug 2005 20:24:40 -0500   author:   Patrick Sullivan

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us