Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
1.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
Comments
Mehdi Gholam 7-Feb-13 5:01am    
Do not post the same question.

 
Share this answer
 
Share more code from the class. This could be a global object variable, a dictionary, a data context variable ... the list can go on
 
Share this answer
 
check this link
I think you copied the source from here
what ever you'll get the info here
http://msdn.microsoft.com/en-us/library/vstudio/system.windows.forms.datagridview.cellvalueneeded%28v=vs.90%29.aspx[^]
 
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