﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - How to fill WebGrid manually with Data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-fill-WebGrid-manually-with-Data/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to fill WebGrid manually with Data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-fill-WebGrid-manually-with-Data/</link><pubDate>Sun, 14 Oct 2012 21:59:20 GMT</pubDate><dc:creator>bernard</dc:creator><category>webgrid 7.0</category><description>&lt;p&gt;Hi Kashif,&lt;/p&gt;&lt;p&gt;You can use this scenario on WebGrid. FYI, in my sample, I don't use any DataSource that bind to WebGrid. WebGrid take data from datatable in code behind. Please look AddRow Event in my sample for tutorial how to add row in Unbound WebGrid. You can also add data when WebGrid Initialize from either database or manually assign on InitializeDataSource event. You can ask me if there's scenario that you want to achieve using this Unbound WebGrid. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>How to fill WebGrid manually with Data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-fill-WebGrid-manually-with-Data/</link><pubDate>Fri, 12 Oct 2012 02:33:44 GMT</pubDate><dc:creator>sobikash11@googlemail.com</dc:creator><category>webgrid 7.0</category><description>In the sample you create a WebGrid with four coloums. &amp;nbsp;I already created a Webgrid with four coloums. My Problem is how can i add Data to that Webgrid without using a Datasource.&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;To be more &lt;a href="http://www.dict.cc/englisch-deutsch/specifically.html" style="color: black; text-decoration: none; font-family: arial, helvetica, sans-serif; "&gt;specifically&lt;/a&gt;. I have Hibernate-Mappings and i want to add that Data which i get from the Mapping to the WebGrid.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;For Example. &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;This is how i have it right now. I create a table manually and add the Data manually to the Table &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;pre&gt;        TableRow row = new TableRow();
        TableCell cell = new TableCell();
        if (dr.Service.Amount == Amount.Basket)
        {
            foreach (BasketService basketDl in dr.Service.Basket)
            {
                
               
                cell.Controls.Add(new LiteralControl("&amp;lt;tr /&amp;gt;"));
                TableRenderer.AddTableCell(row, s.From.ToString(form.DatumsFormat), 1);
                TableRenderer.AddTableCell(row, s.From.ToString(form.ZeitFormat), 1);
                TableRenderer.AddTableCell(row, s.Until.ToString(form.DatumsFormat), 1);
                TableRenderer.AddTableCell(row, s.Until.ToString(form.ZeitFormat), 1);
                cell = new TableCell();
                var txt = new TextBox();
                txt.Text = string.Format("{0:0.00}", s.Price);
                txt.Width = 42;
                txt.MaxLength = 5;
                txt.CssClass = "nummer";
                cell.Controls.Add(txt);
                row.Cells.Add(cell);&lt;pre&gt;              }
          }&lt;/pre&gt;&lt;span style="font-family: 'lucida sans unicode'; font-size: 10pt; "&gt; &lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;How can i do it like that with a WebGrid?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt; &lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>How to fill WebGrid manually with Data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-fill-WebGrid-manually-with-Data/</link><pubDate>Tue, 09 Oct 2012 00:08:56 GMT</pubDate><dc:creator>bernard</dc:creator><category>webgrid 7.0</category><description>&lt;p&gt;Hi Kashif,&lt;/p&gt;&lt;p&gt;From the requirement that you mentioned above, I think you want to do add new row on Unbound WebGrid. For doing this matter, I give you my sample that explain that will describe you how to adding new row on Unbound WebGrid. Could you check on my sample and tell me if this sample meet your requirement or no?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>How to fill WebGrid manually with Data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-fill-WebGrid-manually-with-Data/</link><pubDate>Mon, 08 Oct 2012 02:25:09 GMT</pubDate><dc:creator>sobikash11@googlemail.com</dc:creator><category>webgrid 7.0</category><description>Hello, i have a WebGrid with four colomns. From, Until, Service and Price.&amp;nbsp;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;How can i fill the WebGrid manually? &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I can create a WebGrid-Colum with: &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;pre&gt;WebGrid1.RootTable.Columns.Add("Services");&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;Is there a way to Add Data manually to that Colum i have created?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;Somthing like:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p /&gt;&lt;pre&gt;WebGrid1.RootTable.Columns.AddDataToColumn("Services", dr.Services);&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;dr.Services gets the Data over the Mapping.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p /&gt;&lt;/div&gt;</description></item></channel></rss>