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
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