I am looking for the ideal and perfect way to create a grid where users could add the details. I have created one in my own way, I don't know whether that's the perfect way. Kindly check http://test.physique-tv.com/customers/estimate.aspx
I have created a Datalist and added textboxes in it and applied CSS.
Dim dt As New DataTable
dt.Columns.Add("a1", GetType(String))
dt.Columns.Add("a2", GetType(String))
dt.Columns.Add("a3", GetType(String))
dt.Columns.Add("a4", GetType(String))
dt.Columns.Add("a5", GetType(String))
Dim dr As DataRow
For i = 0 To 25
dr = dt.NewRow
dt.Rows.Add(dr)
Next
DataList1.DataSource = dt
DataList1.DataBind()
I would go for FormView for data input....and then normal gridview for displaying and editing details...I exactly dont know the requirements so I may not be able to comment on present implementation...
shabeerna200...
0 Points
7 Posts
Grid for a Project Management Application
Apr 16, 2012 07:20 AM|LINK
Hi,
I am looking for the ideal and perfect way to create a grid where users could add the details. I have created one in my own way, I don't know whether that's the perfect way. Kindly check http://test.physique-tv.com/customers/estimate.aspx
I have created a Datalist and added textboxes in it and applied CSS.
<asp:Panel ID="Panel1" runat="server" Height="200px" ScrollBars="Auto"> <asp:DataList ID="DataList1" runat="server" RepeatLayout="Flow"> <ItemTemplate> <asp:TextBox ID="TextBox1" runat="server" CssClass="GridinputItem"></asp:TextBox> <asp:TextBox ID="TextBox2" runat="server" CssClass="GridinputItem"></asp:TextBox> <asp:TextBox ID="TextBox3" runat="server" CssClass="GridinputItem"></asp:TextBox> <asp:TextBox ID="TextBox4" runat="server" CssClass="GridinputItem"></asp:TextBox> <asp:TextBox ID="TextBox5" runat="server" CssClass="GridinputItem"></asp:TextBox> </ItemTemplate> </asp:DataList> </asp:Panel>On form load I have written the following code
Dim dt As New DataTable dt.Columns.Add("a1", GetType(String)) dt.Columns.Add("a2", GetType(String)) dt.Columns.Add("a3", GetType(String)) dt.Columns.Add("a4", GetType(String)) dt.Columns.Add("a5", GetType(String)) Dim dr As DataRow For i = 0 To 25 dr = dt.NewRow dt.Rows.Add(dr) Next DataList1.DataSource = dt DataList1.DataBind()Once rendered the output looks like http://test.physique-tv.com/customers/estimate.aspx
Let me know is this the exact way to create the grid :-)
ramiramilu
All-Star
95503 Points
14106 Posts
Re: Grid for a Project Management Application
Apr 16, 2012 08:45 AM|LINK
I would go for FormView for data input....and then normal gridview for displaying and editing details...I exactly dont know the requirements so I may not be able to comment on present implementation...
Thanks,
JumpStart
shabeerna200...
0 Points
7 Posts
Re: Grid for a Project Management Application
Apr 16, 2012 08:57 AM|LINK
Kindly check the below layout. It's an image from "Quick Book Estimate Screen". I am trying to develop something similar, but in ASP.NET