Angel,
It's simple, if you have a datagrid reference, you can do this:
// Set the value in the first column of the first row to "hello", assuming
it takes a string value.
// mobjDataGrid is the reference to System.Windows.Forms.DataGrid
mobjDataGrid[0, 0] = "hello";
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Angel" <none> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Can you provide an example of using the default indexer in the datagrid?
Thanks again.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:#S*************@TK2MSFTNGP10.phx.gbl... Angel,
Yes, it is. If you have a reference to the grid control, the
default indexer will allow you to get/set the values in the grid.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Angel" <none> wrote in message
news:u4**************@TK2MSFTNGP12.phx.gbl... Is it possible to update a datagrid directly without having to use the
underlying datatable? I use framework 1.0.
Angel