Dim Table As Data.DataTable
....Fill(DataSet,TableName)
Table = DataSet.Tables.Item(TableName)
Dim Row As DataRow = Table.Rows(行号)
dim a,b
a = Row.Item(列名a)
b = Row.Item(列名b)
....Fill(DataSet,TableName)
Table = DataSet.Tables.Item(TableName)
Dim Row As DataRow = Table.Rows(行号)
dim a,b
a = Row.Item(列名a)
b = Row.Item(列名b)
rows=dataGrid1.CurrentCell.RowNumber ;
cols=dataGrid1.CurrentCell.ColumnNumber ;
MessageBox.Show(dataGrid1[rows,cols].ToString() ); //显示当前选中的行、列值
string str=ds.Tables[0].Rows[pos][0].ToString();
http://xml.sz.luohuedu.net/
DataSet ds=new DataSet();
****.Fill(ds,"表名");
或****.Fill(ds)//下步用表号如果是第一个填充用号为0,第二个则为1************
ds.Tables["表名或号"].Rows[行号][例号].ToString();
表名