看看这个代码是什么“存储” [英] check out this code what is "store"

查看:86
本文介绍了看看这个代码是什么“存储”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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];
    }

推荐答案

A 字典 [ ^ ]。


从班级共享更多代码。这可能是一个全局对象变量,一个字典,一个数据上下文变量...列表可以继续
Share more code from the class. This could be a global object variable, a dictionary, a data context variable ... the list can go on


检查此链接

我想你复制了从这里来源

你会得到什么信息

http://msdn.microsoft.com/en-us/library/vstudio/system.windows.forms.datagridview.cellvalueneeded %28v = vs.90%29.aspx [ ^ ]


这篇关于看看这个代码是什么“存储”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆