datagrid相关

int rowID = Convert.ToInt32(dataGrid_OpenBoxScan.CurrentRowIndex.ToString());//得到所选行的行号
                    textBox_MatrialName.Text = materialDt.Rows[rowID]["物料名称"].ToString();

posted @ 2013-10-22 20:37  佳序  阅读(142)  评论(0)    收藏  举报