2013-12-23 113 views

回答

3

由于@brendon指的是,如果GridView控件是当前ViewGridControl

// Get your currently selected grid row 
var rowHandle = gridView.FocusedRowHandle; 

// Get the value for the given column - convert to the type you're expecting 
var obj = gridView.GetRowCellValue(rowHandle, "FieldName"); 
0
public int idproductx; 

    public void tProductGridView_RowClick(object sender, RowClickEventArgs e)   
    {   
     if (e.Clicks > 0)  
     {   
      idproductx = (int)((GridView)sender).GetRowCellValue(e.RowHandle, "idproduct ");      
     } 
    } 
+0

你应该开发你的答案,而不是仅仅发布一个解释不明的解决方案。 –

相关问题