﻿<?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 Do I add the bandID to a cell in a new row.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-Do-I-add-the-bandID-to-a-cell-in-a-new-row/</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 Do I add the bandID to a cell in a new row.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-Do-I-add-the-bandID-to-a-cell-in-a-new-row/</link><pubDate>Tue, 10 Nov 2009 02:03:58 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;It seems I misunderstand the issue, my superior send me your email:&lt;br /&gt;&lt;/p&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 5px; padding-left: 10px;"&gt;&lt;p&gt;&lt;span style="font-size: 11pt; font-family: &amp;quot;calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; color: rgb(31, 73, 125);"&gt;I have a grid that has two child tables(3levels). I also have a column in each table called “VisibleLevel,” whichis hidden.&lt;br /&gt;
&lt;br /&gt;
I need to populate this column automatically with the level of the band (0,1,2)
when a new row is created. How do I do this on the server-side?&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Attached is a simple sample if you wish to add certain data to a undisplayed data source column. During AddRow server side event you will need to set the undisplayed data source column with the value you wish. The sample will require Northwind.mdb data&lt;/p&gt;
&lt;p&gt;In your scenario, you will need to differentiate between row added in the parent or child table, using the e.Row.Table.Name(determine the table name) / e.Row.Table.TableLevel(determine the level of the table) property in the AddRow server side event should be sufficient.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How Do I add the bandID to a cell in a new row.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-Do-I-add-the-bandID-to-a-cell-in-a-new-row/</link><pubDate>Sun, 08 Nov 2009 23:03:22 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;If you wish to keep a hidden data in the WebGrid you could use the HiddenDataMember on the column level, the HiddenDataMember will work if the datasource contains the column with the value you wish to hide. Here is the snippet if you wish to hold the &lt;em&gt;Title &lt;/em&gt;value in the &lt;em&gt;FirstName&lt;/em&gt; column:&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="FirstName" DataMember="FirstName" Name="FirstName"&lt;br /&gt;    Width="100px" HiddenDataMember="Title"&amp;gt;&lt;br /&gt;&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;&lt;p&gt;The HiddenDataMember will be assigned automatically during the add row process.&lt;/p&gt;
&lt;p&gt;In order to access the value in the client side, here is the snippet:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;em&gt;WebGridRowObject&lt;/em&gt;.GetCell('FirstName').CellElement.getAttribute('id')&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How Do I add the bandID to a cell in a new row.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-Do-I-add-the-bandID-to-a-cell-in-a-new-row/</link><pubDate>Sun, 08 Nov 2009 14:48:10 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><description>&lt;p&gt;I want to automatically add the band-level to a hidden cell when a new row is added.  How do I do this automatically or on the server.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>