andycharger Posted December 10, 2003 Posted December 10, 2003 (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 December 10, 2003 by Robby Quote
AsifCh Posted December 13, 2003 Posted December 13, 2003 Why Not you are using the <HR> Tag of HTML You can set Its Style And it looks great also Set its width to 100% to make it page sized Long Quote Asif Raza Ashraf Senior Software Engineer Electronic Solutions Pakistan Islamabad
FancyKetsup Posted December 14, 2003 Posted December 14, 2003 Sounds to me a Repeater control would serve your needs better. Quote
andycharger Posted December 18, 2003 Author Posted December 18, 2003 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? Quote
Administrators PlausiblyDamp Posted December 18, 2003 Administrators Posted December 18, 2003 I think he meant use a repeater instead of a data grid. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.