winform下国际化支持的奇怪问题。。。 trace的结果中,datagrid中只有hscrollbar和vscrollbar。增加的几个column都没有,难道,这个咚咚要databind之后才能有吗?! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不想针对每个control都单独处理,想不出别的办法了 试验过了,binddata之后,再执行这个方法,仍然没有效果。 你可以单独跟踪一下 datagrid 的 过程 跟踪过了,而且,trace的过程应该是很全面的了。请大家继续关注一下,谢谢! System.Object System.MarshalByRefObject System.ComponentModel.Component System.Windows.Forms.DataGridTableStyleSystem.Object System.MarshalByRefObject System.ComponentModel.Component System.Windows.Forms.DataGridColumnStyle System.Windows.Forms.DataGridTextBoxColumn“添加一个tablestyles,然后随便增加了几个列”都不是Control 搞定了!感谢我的兄弟!!!部分代码如下:Type t = this.GetType();BindingFlags bf = BindingFlags.Instance|BindingFlags.NonPublic|BindingFlags.Public|BindingFlags.FlattenHierarchy;object obj = t.Assembly.CreateInstance(FullName);Type fiType;PropertyInfo pi;MethodInfo mi;foreach(FieldInfo fi in t.GetFields(bf)){ System.Diagnostics.Trace.WriteLine(fi.Name); try { fiType = fi.FieldType; pi = fiType.GetProperty("Text"); mi = pi.GetSetMethod(); mi.Invoke(fi.GetValue(this),new object[]{"Test"}); } catch { }}也感谢楼上的“白痴”兄弟,给了我提醒,呵呵,结账了! 来牛人挑战下正则! Process开启的新进程影响主进程 划拳机器人编译出错,什么原因? 压缩时的错误 时间格式化的问题 请问,如何用正则表达式删除一个空行? C#程序安装必须要求和相应的.NET framework版本对应吗? 请问各位大哥:你们用什么工具做Web报表? 选中datagrid一行,怎样用SQL来删除??急急,请高手指教 菜鸟100分求助....如何让一个panel拥有像html里面div的绝对定位一样?我要做收缩菜单但是不能占右边内容区的空间.. 请介绍一下有关SVG的情况,以及与C#相关的编程网站 已学完C#程序设计一书,想要在.Net中继续深入应该看什么书?
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.DataGridTableStyleSystem.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.DataGridColumnStyle
System.Windows.Forms.DataGridTextBoxColumn“添加一个tablestyles,然后随便增加了几个列”
都不是Control
Type t = this.GetType();
BindingFlags bf = BindingFlags.Instance|BindingFlags.NonPublic|BindingFlags.Public|BindingFlags.FlattenHierarchy;
object obj = t.Assembly.CreateInstance(FullName);
Type fiType;
PropertyInfo pi;
MethodInfo mi;foreach(FieldInfo fi in t.GetFields(bf))
{
System.Diagnostics.Trace.WriteLine(fi.Name);
try
{
fiType = fi.FieldType;
pi = fiType.GetProperty("Text");
mi = pi.GetSetMethod();
mi.Invoke(fi.GetValue(this),new object[]{"Test"});
}
catch
{
}
}也感谢楼上的“白痴”兄弟,给了我提醒,呵呵,结账了!