Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Getting cell value within datagrid? C++
 

Getting cell value within datagrid? C++

Hi,

How would I get the value from a cell within a datagrid if I have the column number and row number in C++ when
using datagrids?

I know in C# you use the following syntax:

dtaGrid[1,2];

But, if I try this in C++ it gives me the following error:

error C2845 '[' Cannot perform pointer arithmetic on __gc pointr 'System::Windows::Forms::DataGrid__Gc *'

Thanks

robben07160  Wednesday, January 17, 2007 4:51 PM

Would anyone know?

Thanks in advance for your help!

robben07160  Thursday, January 18, 2007 6:14 AM

You can use google to search for other answers

Custom Search

More Threads

• Add an empty item to bound combobox
• Datagrid - changes not recognised unless move off row
• How to position a new window on a grid???
• sizing a datagridview according to the rows in it?
• Unrated Problem, just 4 experts!!!
• modify gridview according to listbox
• Populating Serial No Problem
• Bug in Typed DataSet Designer?
• how upload files into application
• Combobox in a datagrid