Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
C#
private void dataGridView1_CellValueNeeded(object sender,
    DataGridViewCellValueEventArgs e)
{
    if (store.ContainsKey(e.RowIndex))
    {
        // Use the store if the e value has been modified
        // and stored.
        e.Value = store[e.RowIndex];
    }
Posted
Updated 6-Feb-13 23:03pm
v2

store is not a function it is an array/indexer to a data source.

Right click on the word in Visual Studio and select "Go To Definition" to see what the type is.
 
Share this answer
 
Comments
Kishor Deshpande 7-Feb-13 5:02am    
My 5
If you copy and pasted that method, you missed out the member called store. It looks like it was declared as a Dictionary<int, Int>.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900