Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Datagrids first time use

Thread Tools

Datagrids first time use

Hai Nguyen
Posts: n/a
Question Answer
1 Q1 A1
2 Q2 A2
3 Q3 A3
4 Q4 A4
5 Q5 A5

I would like to know I hage a datagrid like above, I generate a datagid like
the one code giving below. The answer column will let the user to fill in
the answer which assosiate to the quetion asking. I would like to know after
filling out the answers from
1/ How can I update those values back to database, I mean how i can let .net
know which column I want to get the database from
2/ I would like to have a validiation check as well


<asp:datagrid id="grid" runat="server" Width="608px"
OnItemCreated="ItemCreated" AutoGenerateColumns="False"
" ShowFooter="True">
<SelectedItemStyle Font-Bold="True" ForeColor="White"
<ItemStyle ForeColor="Black" BackColor="#DEDFDE"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="#E7E7FF"
<FooterStyle ForeColor="Black" BackColor="#C6C3C6"></FooterStyle>
<PagerStyle HorizontalAlign="Right" ForeColor="Black"
<asp:BoundColumn DataField="Q_Question"
<asp:TemplateColumn HeaderText="Answer">
<asp:TextBox Runat="server" ID="answerbox"></asp:TextBox>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is time.time() < time.time() always true? flamesrock Python 8 11-24-2006 06:51 AM
What to use instead of the CommandArgument in DataGrids? =?Utf-8?B?Y2hhcmxpZXdlc3Q=?= ASP .Net 2 03-31-2005 05:41 PM
Getting IE windows to open maximised first time every time Quiz Time Computer Support 3 08-25-2004 02:54 PM
Formatting datagrids at run time coleenholley ASP .Net 2 01-30-2004 04:39 PM
Possible to use parent and child datagrids? Kathy Burke ASP .Net 0 08-26-2003 09:23 PM