Home > Net >  C # "devexpress. The xtraGrid. Views. The Grid. The GridView" does not include in the set
C # "devexpress. The xtraGrid. Views. The Grid. The GridView" does not include in the set

Time:10-08

C # error "devexpress xtraGrid. Views. The Grid, the GridView" does not contain Rows in and can't find the acceptable type for the definition of "devexpress. The xtraGrid. Views. The Grid. The GridView" the first parameter to the method of "Rows" (whether or not the lack of a using directive or assembly references). Code and error as well as the current assembly references as shown in the figure below, the small white for help...

CodePudding user response:

An error code 11

CodePudding user response:

reference 1st floor ManBOyyy response:
an error code? 11

I'm sorry... Don't post awkward...
An error code is gridview1 Rows [1]. The Backcolor, little red wave under the Rows

CodePudding user response:

refer to the original poster weixin_45331087 response:
c # error "devexpress. The xtraGrid. Views. The Grid. The GridView" does not contain Rows in and can't find the acceptable type for the definition of "devexpress. The xtraGrid. Views. The Grid. The GridView" the first parameter to the method of "Rows" (whether or not the lack of a using directive or assembly references). Code and error as well as the current assembly references as shown in the figure below, the small white for help...

And after the input "gridview1.", automatic out of the option of Cloumns, but is no Rows...

CodePudding user response:


You want to change a this binding controls

CodePudding user response:


GridView1. GetDataRow (rowHan) [r]. "className" ToString ();//line GetDataRow className column name
Try this way

CodePudding user response:

Are you going to see a devexpress API,

CodePudding user response:

Dev grid is very difficult to use, the third party of the grid while good interface, function is much, but I still recommend the use of Microsoft's datagridview

CodePudding user response:

reference 5 floor ManBOyyy reply:

GridView1. GetDataRow (rowHan) [r]. "className" ToString ();//line GetDataRow className column name
Try this way

Wow it's? Even though! ~ good ~ ~ ~ ~ ~ ~ ~ ~

CodePudding user response:

reference 5 floor ManBOyyy reply:

GridView1. GetDataRow (rowHan) [r]. "className" ToString ();//line GetDataRow className column name
Try this way

But it can get a line of data in a cell, but cannot be set some parameters such as the background color of the bank what ah

CodePudding user response:

In this event
Private void gridView1_RowCellStyle (object sender, DevExpress XtraGrid. Views. Grid. RowCellStyleEventArgs e)
{
If (e.c. with our fabrication: olumn. FieldName=="CGRBH")
{
String aa=gridView1. GetRowCellDisplayText (" e.R owHandle, gridView1. Columns [" CGRBH] ");
If (aa=="6666")
{
E.A ppearance. BackColor=Color. DeepSkyBlue;
E.A ppearance. BackColor2=Color. LightCyan;
}
}
  •  Tags:  
  • C#
  • Related