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]
- (e-mail address removed)
Angel said:
Can you provide an example of using the default indexer in the datagrid?
Does Nicholas' reply make sense to you? Do you still have concern on this
issue?
Please feel free to feedback. Thanks
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.