Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Can somone tell me how I manage to get a dividing line between each of my questions in my Datagrid?

I am returning a multiple choice set of 10 questions and want a dividing line after the answers of each question. I tried putting an <IMG> tag in but it complains when I run it.

 

Any Ideas?

 

Here is the code:

 

<asp:DataGrid id="dgQuestions" BorderWidth="0" CellPadding="1" Width="600" ShowHeader="true" runat="server" BorderStyle="None" BackColor="White" Font-Names="Arial" Font-Size="XX-Small" AutoGenerateColumns="false" OnItemDataBound="dgQuestions_ItemDataBound">

<Columns>

<asp:BoundColumn DataField="question_text">

</asp:BoundColumn>

<asp:TemplateColumn>

<ItemTemplate>

<INPUT type="radio" id="radStatus<%#DataBinder.Eval(Container.DataItem,"question_id")%>" name="radStatus<%#DataBinder.Eval(Container.DataItem,"question_id")%>" value="<%#DataBinder.Eval(Container.DataItem,"answer_option")%>">

</ItemTemplate>

</asp:TemplateColumn>

<asp:BoundColumn DataField="Answer_text"> </asp:BoundColumn>

<asp:BoundColumn Visible="False"></asp:BoundColumn>

</Columns>

</asp:DataGrid>

Edited by Robby
Posted

Not possible

 

I cannot do either of the above as the <hr> tag cannot be used within the Datagrid that im using as it falls over.

The ASP:Repeater control cannot be used within the datagrid.

Any ideas how I show an image in my datagrid that works please?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...