C#”devexpress.xtraGrid.Views.Grid.GridView“中不包含Rows的定 C#报错”devexpress.xtraGrid.Views.Grid.GridView“中不包含Rows的定义并且找不到可接受类型为“devexpress.xtraGrid.Views.Grid.GridView“的第一个参数的方法“Rows”(是否缺少using指令或程序集引用);代码及报错还有当前程序集引用如下图所示,小白求救…… 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不好意思……没贴出来尴尬……报错代码是gridview1.Rows[1].Backcolor啥的,红色小波浪画在rows下面 而且在输入"gridview1."后,自动出来的选项里有Cloumns,但就是没有Rows… gridView1.GetDataRow(rowHan)["className"].ToString();// GetDataRow行 className列名這樣子試試 你要去看 devexpress 的API 了。 dev的grid很难用,第三方的grid虽然界面好,功能多,但还是建议使用微软的datagridview 在這個事件吧private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e) { if (e.Column.FieldName == "cgrbh") { string aa = gridView1.GetRowCellDisplayText(e.RowHandle, gridView1.Columns["cgrbh"]); if (aa == "6666") { e.Appearance.BackColor = Color.DeepSkyBlue; e.Appearance.BackColor2 = Color.LightCyan; } } 貌似Treeview控件不能加背景图啊 新年小礼物-屏幕保护色设置软件 求文件上传C#代码 SQL 分组合并数量 怎样使用正则表达式来验证客户输入的合法性 用c#语言怎么写导入导出数据库程序 winform TreeView 绑定数据遍历并实现添加修改功能 sharepoint用户登录问题 (急)在线等 请问如何用c#实现net send功能?送分啦 用c#来添加、删除计算机本地用户用什么接口? flowlayoutpanel控件,窗体最小化后,再最大化的问题 绘制函数图像
报错代码是gridview1.Rows[1].Backcolor啥的,红色小波浪画在rows下面
gridView1.GetDataRow(rowHan)["className"].ToString();// GetDataRow行 className列名
這樣子試試
private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
{
if (e.Column.FieldName == "cgrbh")
{
string aa = gridView1.GetRowCellDisplayText(e.RowHandle, gridView1.Columns["cgrbh"]);
if (aa == "6666")
{
e.Appearance.BackColor = Color.DeepSkyBlue;
e.Appearance.BackColor2 = Color.LightCyan;
}
}