Re: DataSet in Grid Format
Just bind the datagrid to the dataset.
VB Code:
dg1.DataSource = dsDataSet
dg1.DataBind()
Re: DataSet in Grid Format
Quote:
Originally Posted by mendhak
Just bind the datagrid to the dataset.
VB Code:
dg1.DataSource = dsDataSet
dg1.DataBind()
Mendhak, shouldnt it be binded to a DataTable(e.g dsDataSet.Tables[0]) instead of DataSet? Or will it show all the DataTable using a link, something like WinForm datagrid? I never tried it, so not sure.
Re: DataSet in Grid Format
No, the + thing happens in VB.NET only.
I think what I posted is right, but since you've posted, you've confused me. However, I'm just too lazy to open up vs.net and check, so I won't. :afrog:
Re: DataSet in Grid Format
Hi,
thanks for the reply.. but i think i'm clear abt describing my problem.. what i want to acheive is to display the rows in both direction.. what we usually get for the datagrid is that rows repeat vertically OR horizontally. so each of my rows in the datagrid will be displayed in one <td>.. so it will display as:
<table>
<tr>
<td>Row 1 ID<br>
Row 1 Description
</td>
<td>Row 2 ID<br>
Row 2 Description
</td>
<td>Row 3 ID<br>
Row 3 Description
</td>
</tr>
<tr>
<td>Row 4 ID<br>
Row 4 Description
</td>
<td>Row 5 ID<br>
Row 5 Description
</td>
<td>Row 6 ID<br>
Row 6 Description
</td>
</tr>
</table>
is that acheivable?