解决方案 »
- 求C#中取补运算原理
- 如何让DataGridView中的Cell不被用户选中
- 两个字符串变量 string a,b ;以ascii存储编程连接两个字符串
- 获取到一个xml节点/属性,如何获取该节点/属性所对应的xsd中定义的类型?
- 关于SqlParameter的问题.
- 在C#中如何知道程序运行的时间
- VSwinfrom中DataGridView中如何画一行多列?
- 编程求任意给定的n急求这道题的做法C#2.0"个数中的奇数的连乘积、偶数的平方和以及0的个数,n通过控制台输入。
- 请教视频,音频的p2p问题。
- 声纳图绘制
- 大家帮忙看看这个调用C#库函数进行加解密方法的代码错在哪?
- 一个关于DataGridView的问题,各位急求啊
private void picAddDepartment_Click(object sender, EventArgs e)
{
Dictionary<string, string> str = new Dictionary<string, string>();
str = this.Box.Department;
frmSelectEmployees frmSelectEmployee = new frmSelectEmployees(); frmSelectEmployee.CurrentPartment=str;
frmSelectEmployee.ShowDialog(); if(frmSelectEmployee.SelectedUser.Count>0)
{
str["uID"] = frmSelectEmployee.SelectedIDs;
this.Box.Department["uID"] = str["uID"];
int DeptCount = Convert.ToInt32(this.Box.Department["DeptCount"]);
DeptCount += frmSelectEmployee.SelectedUser.Count;
this.Box.Department["DeptCount"] = DeptCount.ToString();
str = this.Box.Department;
frmSelectEmployee.addUsersToDept(str);
this.Box.BeginLoad();
} this.Box.Page.FocusPool.SetFocus("CurrentTree", str);
}2、BindFocus部分:
protected override void OnBound()
{
base.OnBound();
this.Page.FocusPool.BindFocus("CurrentTree", this, this.FocusChangedEventHandler, this.FocusChangingEventHandler);
}
private void FocusChangedEventHandler(string focusKey, FocusChangedEventArgs args)
{
switch (focusKey)
{
case "CurrentTree":
this.CurrentItem = args.NewFocus as Dictionary<string, string>;
this.BeginLoad();
break;
}
}