H
HS1
Hello
I use a DataGrid to present data of a table ("Jobs") through a DataSet (ds)
using a DataAdapter (da)
I use the query for DataAdapter (da):
SELECT JobID, Job_Description, Architects, ClientID From Jobs
Then I use the code below to fill data into the DataGrid1
DataGrid1.DataSource = ds
DataGrid1.DataMember = "Jobs"
da.Fill(ds)
What I want is to present the JobID in the first column, the Job_Description
in the second column and so on. However, when I do the code as above, the
Datagrid shows column (fields) following the order: Architects, ClientID,
JobID and Job_Description
Could you please help to present the column order in a DataGrid.
Thank you very much for your help
SH1
I use a DataGrid to present data of a table ("Jobs") through a DataSet (ds)
using a DataAdapter (da)
I use the query for DataAdapter (da):
SELECT JobID, Job_Description, Architects, ClientID From Jobs
Then I use the code below to fill data into the DataGrid1
DataGrid1.DataSource = ds
DataGrid1.DataMember = "Jobs"
da.Fill(ds)
What I want is to present the JobID in the first column, the Job_Description
in the second column and so on. However, when I do the code as above, the
Datagrid shows column (fields) following the order: Architects, ClientID,
JobID and Job_Description
Could you please help to present the column order in a DataGrid.
Thank you very much for your help
SH1