| 
 我想删除superGridControl中选中的行, MessageBox.Show(col.Count.ToString());  | 
|
![]()  | 
在DataGridView1控件中删除选中的行方法这样,superGridControl没用用过,方法是不是类似?
foreach (DataGridViewRow r in DataGridView1.SelectedRows) 
{ 
    if (!r.IsNewRow) 
    { 
        DataGridView1.Rows.Remove(r); 
    } 
}
 | 
![]() 10分  | 
 可是的到的行书是0,是不是没有数据? 
 | 
![]()  | 
 不是,有数据的。我superGridControl中的Cell中有值,我只想得到RowHeaderText。 
superGridControl的用法和dataGridView的用法不一样,superGridControl是第三方控件  | 
![]()  | 
       private void ListGrid_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e) 
{ SelectedElementCollection col = this.ListGrid.PrimaryGrid.GetSelectedRows(); SelectedElementCollection s=ListGrid.GetSelectedRows(); // GridContainer dh=e.GridRow.Index; int dd=e.GridRow.Index;//得到选中的行行数是从0开始的 // MessageBox.Show(dd.ToString()); // GridRow g= col[dd] as GridRow; //MessageBox.Show(g.Cells[0].Value.ToString()); if (col.Count > 0) { GridRow r = col[0] as GridRow; //MessageBox.Show(r.Cells[0].Value.ToString()); MessageBox.Show(r.RowHeaderText); } //GridRow r = col[0] as GridRow; //MessageBox.Show(r.Cells[0].Value.ToString()); } 在双击当中就可以得到行数据  | 
![]() 10分  | 
 估计你点删除ToolStripMenuItem_Click,没有选择行 
 | 
![]()  | 
system.out.publctln("aa");
 | 
                    
