<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>ASP.NET Real World Controls</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Project/ProjectRss.aspx</link><description>Real World implementations of custom controls for ASP.NET.   </description><item><title>New Post: Using BulkEditGridView in Dynamic Data site</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=41746</link><description>&lt;div style="line-height: normal;"&gt;I tried using the BulkEditGridView within a dynamic data site. Everything is displayed correctly, and can be edited, only the changes are not saved to the database.&lt;br&gt;
&lt;br&gt;
I traced the problem to BulkEditGridView.cs / AddChangedHandlers(). For the changed-handler to attach to a control, this control needs to implement IEditableTextControl, but Dynamic Data uses DynamicControl, which has no such interface. Also there seem to be no change-events available on DynamicControl.&lt;br&gt;
&lt;br&gt;
Has anyone else encountered this problem, or does anyone know a way around this, so I can use the BulkEditGridView with Dynamic Data?
&lt;/div&gt;</description><author>marqis</author><pubDate>Mon, 08 Dec 2008 12:33:18 GMT</pubDate><guid isPermaLink="false">New Post: Using BulkEditGridView in Dynamic Data site 20081208123318P</guid></item><item><title>Created Issue: BulkEditGridView Checkbox Check/Uncheck All</title><link>http://www.codeplex.com/ASPNetRealWorldContr/WorkItem/View.aspx?WorkItemId=7563</link><description>Greetings Intelligencia&amp;#33;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m a newbie building a web app using VS 2008, SQL Server 2000, C&amp;#35; .Net 2.0.  I found and implemented BulkEditGridView which works great.  It contains an updatable Checkbox.  Now I want to add &amp;#39;Check&amp;#47;Uncheck All&amp;#39; logic but I&amp;#39;m messing up somewhere.  I tried the following&amp;#58;&lt;br /&gt;foreach &amp;#40;GridViewRow row in EditableGrid.Rows&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            if &amp;#40;row.RowType &amp;#61;&amp;#61; DataControlRowType.DataRow&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                &amp;#47;&amp;#47; Access the CheckBox&lt;br /&gt;                CheckBox cb &amp;#61; &amp;#40;CheckBox&amp;#41;row.FindControl&amp;#40;&amp;#34;HasSecurity&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;                if &amp;#40;cb &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;                    cb.Checked &amp;#61; checkState&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;but DataItem is always null.  Then I found RecursiveFindControl and I think maybe that&amp;#39;s my answer but I don&amp;#39;t know.  As you can probably tell, I know only enough to be dangerous&amp;#33;  &amp;#58;-&amp;#41;&lt;br /&gt;&lt;br /&gt;Any&amp;#47;all help is greatly appreciated&amp;#33;&lt;br /&gt;&lt;br /&gt;Sincerely,&lt;br /&gt;Sam&lt;br /&gt;&lt;br /&gt;P.S.  Please forgive me if I am doing this wrong.  I just joined the group.  Let me know if I have done this the wrong way and I will fix it&amp;#33;&lt;br /&gt;</description><author>sfhou</author><pubDate>Wed, 10 Sep 2008 17:33:56 GMT</pubDate><guid isPermaLink="false">Created Issue: BulkEditGridView Checkbox Check/Uncheck All 20080910053356P</guid></item><item><title>Created Issue: BulkEditGridView not working with javascript</title><link>http://www.codeplex.com/ASPNetRealWorldContr/WorkItem/View.aspx?WorkItemId=7447</link><description>I have a bulkeditgridview on my aspx page with a checkbox column. The header of the checkbox column is a SelectAll checkbox, for which I have written an javascript function to select all the checkboxes. Now, if the javascript function is invoked and all the rows in the gridview gets modified then dirtyrows do not get created. But if I ignore the Select All checkbox at the header and just modify few&amp;#47;all rows manually then the bulkedit works fine. &lt;br /&gt;&lt;br /&gt;I tried searching for BulkEditGridView &amp;#43; Javascript, but found nothing. I am really crushed under a stiff deadline, immediate help would really be appreciated.&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;</description><author>astha</author><pubDate>Fri, 29 Aug 2008 02:37:20 GMT</pubDate><guid isPermaLink="false">Created Issue: BulkEditGridView not working with javascript 20080829023720A</guid></item><item><title>New Post: freezing footer?</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=33627</link><description>&lt;div style="line-height: normal;"&gt;I have got 99% of this down but can't get the proper css expression to position the footer as frozen... anybody figured this one out?&lt;br&gt;
&lt;/div&gt;</description><author>jlaius</author><pubDate>Fri, 15 Aug 2008 21:44:25 GMT</pubDate><guid isPermaLink="false">New Post: freezing footer? 20080815094425P</guid></item><item><title>Created Issue: FrozenGridView  does not allow using Sorting anymore</title><link>http://www.codeplex.com/ASPNetRealWorldContr/WorkItem/View.aspx?WorkItemId=7144</link><description>As I deployed the FrozenGrid, it was impossible to make Sorting to work, at least for me&amp;#33;&lt;br /&gt;</description><author>c_marius</author><pubDate>Wed, 30 Jul 2008 18:56:15 GMT</pubDate><guid isPermaLink="false">Created Issue: FrozenGridView  does not allow using Sorting anymore 20080730065615P</guid></item><item><title>Commented Issue: TwoHeadedGridView: when canceling changes the wrong row is editable when the page refreshes.</title><link>http://www.codeplex.com/ASPNetRealWorldContr/WorkItem/View.aspx?WorkItemId=6958</link><description>create a TwoHeadedGridView and then create an onUpdating EventHandler.  In the onUpdating delegate set e.cancel &amp;#61; true.  When you go to edit the 5th row in the gridview and hit the update button the onUpdating event will cancel the update and when the page comes back instead of the 5th row being open to editing the 4th row is open.&lt;br /&gt;Comments: ** Comment from web user: jhilden ** &lt;p&gt;sorry, my last attachment was missing an if statement.  corrected attachment is up now.&lt;/p&gt;</description><author>jhilden</author><pubDate>Tue, 15 Jul 2008 20:02:03 GMT</pubDate><guid isPermaLink="false">Commented Issue: TwoHeadedGridView: when canceling changes the wrong row is editable when the page refreshes. 20080715080203P</guid></item><item><title>Commented Issue: TwoHeadedGridView: when canceling changes the wrong row is editable when the page refreshes.</title><link>http://www.codeplex.com/ASPNetRealWorldContr/WorkItem/View.aspx?WorkItemId=6958</link><description>create a TwoHeadedGridView and then create an onUpdating EventHandler.  In the onUpdating delegate set e.cancel &amp;#61; true.  When you go to edit the 5th row in the gridview and hit the update button the onUpdating event will cancel the update and when the page comes back instead of the 5th row being open to editing the 4th row is open.&lt;br /&gt;Comments: ** Comment from web user: jhilden ** &lt;p&gt;The current code creates the 2nd header on the OnDataBound event.  I fixed this issue by creating the 2nd header in the onRowCreated event.&lt;/p&gt;</description><author>jhilden</author><pubDate>Tue, 15 Jul 2008 19:58:27 GMT</pubDate><guid isPermaLink="false">Commented Issue: TwoHeadedGridView: when canceling changes the wrong row is editable when the page refreshes. 20080715075827P</guid></item><item><title>Created Issue: TwoHeadedGridView: when canceling changes the wrong row is editable when the page refreshes.</title><link>http://www.codeplex.com/ASPNetRealWorldContr/WorkItem/View.aspx?WorkItemId=6958</link><description>create a TwoHeadedGridView and then create an onUpdating EventHandler.  In the onUpdating delegate set e.cancel &amp;#61; true.  When you go to edit the 5th row in the gridview and hit the update button the onUpdating event will cancel the update and when the page comes back instead of the 5th row being open to editing the 4th row is open.&lt;br /&gt;</description><author>jhilden</author><pubDate>Tue, 15 Jul 2008 19:55:57 GMT</pubDate><guid isPermaLink="false">Created Issue: TwoHeadedGridView: when canceling changes the wrong row is editable when the page refreshes. 20080715075557P</guid></item><item><title>NEW POST: Dynamically Binding Error</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=28225</link><description>&lt;div style="line-height: normal;"&gt;Error Message: &lt;em&gt;Databinding methods such as Eval(), XPath(), and Bind() can only be used in
the context of a databound control&lt;br&gt;
&lt;br&gt;
&lt;/em&gt;I have the following TemplateField:&lt;br&gt;
&amp;lt;asp:TemplateField HeaderText=&amp;quot;Style&amp;quot;&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;EditItemTemplate&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:DropDownList ID=&amp;quot;ddlAssetStyle&amp;quot; runat=&amp;quot;server&amp;quot; DataSourceID=&amp;quot;SqlDataSourceAssetStyle&amp;quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DataTextField=&amp;quot;StyleNme&amp;quot; DataValueField=&amp;quot;id_AssetStyle&amp;quot; SelectedValue='&amp;lt;%# Bind(&amp;quot;AssetStyleID&amp;quot;) %&amp;gt;'&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; AppendDataBoundItems=&amp;quot;true&amp;quot; EnableViewState=&amp;quot;true&amp;quot;&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:DropDownList&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:SqlDataSource ID=&amp;quot;SqlDataSourceAssetStyle&amp;quot; runat=&amp;quot;server&amp;quot; SelectCommand=&amp;quot;p_Data&amp;quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SelectCommandType=&amp;quot;StoredProcedure&amp;quot; ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:Dev01ConnectionString %&amp;gt;&amp;quot;&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:SqlDataSource&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/EditItemTemplate&amp;gt;&lt;br&gt;
&amp;lt;/asp:TemplateField&amp;gt;&lt;br&gt;
&lt;br&gt;
This is the only column that is data bound and must be causing the error. This field works fine with a normal GridView.&lt;br&gt;
I bind the gridview programmatically using a LINQ query. &lt;br&gt;
&lt;br&gt;
Thanks in advance.&lt;br&gt;
&lt;em&gt;
&lt;/em&gt;
&lt;/div&gt;</description><author>pacifistk</author><pubDate>Thu, 22 May 2008 13:44:37 GMT</pubDate><guid isPermaLink="false">NEW POST: Dynamically Binding Error 20080522014437P</guid></item><item><title>NEW POST: Help with OnRowUpdating</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=8686</link><description>&lt;div style="line-height: normal;"&gt;121212 &lt;br&gt;
&lt;div style="border-style:dotted none;border-color:rgb(170, 170, 170) -moz-use-text-color;border-width:0.1em medium;margin:1em 0em 2.5em 3em;padding:0.2em;font-style:italic"&gt;&lt;br&gt;
judahr wrote:&lt;br&gt;
Few things to check:&lt;br&gt;
1.  Make sure DataKeys is set.&lt;br&gt;
2.  Make sure the overridden Gridview you are using has the following:&lt;br&gt;
a. OnRowUpdating has to explicitly call this.ExtractRowValues(e.NewValues, this.Rows&lt;a href="http://www.codeplex.com/ASPNetRealWorldContr/Wiki/View.aspx?title=e.RowIndex"&gt;e.RowIndex&lt;/a&gt;, true, true);&lt;br&gt;
b. I also use this and call it from OnRowUpdating:&lt;br&gt;
private void PopulateRowValueKeys(IOrderedDictionary Keys, int RowIndex)&lt;br&gt;
{&lt;br&gt;
foreach (string DataKeyName in this.DataKeyNames)&lt;br&gt;
{&lt;br&gt;
if (this.DataSource is DataView)&lt;br&gt;
{&lt;br&gt;
DataView dv = this.DataSource as DataView;&lt;br&gt;
Keys.Add(DataKeyName, dv&lt;a href="http://www.codeplex.com/ASPNetRealWorldContr/Wiki/View.aspx?title=RowIndex"&gt;RowIndex&lt;/a&gt;&lt;a href="http://www.codeplex.com/ASPNetRealWorldContr/Wiki/View.aspx?title=DataKeyName"&gt;DataKeyName&lt;/a&gt;);&lt;br&gt;
}&lt;br&gt;
else if (this.DataSource is DataTable)&lt;br&gt;
{&lt;br&gt;
DataTable dv = this.DataSource as DataTable;&lt;br&gt;
Keys.Add(DataKeyName, dv.Rows&lt;a href="http://www.codeplex.com/ASPNetRealWorldContr/Wiki/View.aspx?title=RowIndex"&gt;RowIndex&lt;/a&gt;&lt;a href="http://www.codeplex.com/ASPNetRealWorldContr/Wiki/View.aspx?title=DataKeyName"&gt;DataKeyName&lt;/a&gt;);&lt;br&gt;
&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>MayFisto</author><pubDate>Sat, 10 May 2008 00:02:33 GMT</pubDate><guid isPermaLink="false">NEW POST: Help with OnRowUpdating 20080510120233A</guid></item><item><title>CREATED ISSUE: expression() statements are supported only in IE and not in Firefox</title><link>http://www.codeplex.com/ASPNetRealWorldContr/WorkItem/View.aspx?WorkItemId=6007</link><description>I downloaded the FrozenGridView and tested it. The code &amp;#34;expression&amp;#40;this.offsetParent.Top&amp;#41;&amp;#34;  is supported only in IE but not in Firefox. Is there any workaround for this piece of code to make it work in FireFox.&lt;br /&gt;</description><author>Sivi</author><pubDate>Thu, 17 Apr 2008 15:37:44 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: expression() statements are supported only in IE and not in Firefox 20080417033744P</guid></item><item><title>NEW POST: BulkEditGridView + InsertRows + Current Row Index by Container.DataItemIndex</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=25512</link><description>&lt;div class="wikidoc"&gt;
I am using the GridView for editing multiple lines. Basically the whole thing works fine. It displays the lines from the datasource plus a certain number of insert lines. Perfect. But there is one think which I could not solve till now.&lt;br /&gt; &lt;br /&gt;Following, I have a column with an image button. If I click on the button I call a javascript function. I want to provide the current row index to the function. It looks like this:&lt;br /&gt; &lt;br /&gt;&amp;lt;controls:BulkdEditGridView ID=&amp;quot;GridView&amp;quot; runat=&amp;quot;server&amp;quot; DataSourceID=&amp;quot;ObjDataSource&amp;quot; AutoGenerateColumns=&amp;quot;false&amp;quot; ...&amp;gt;&lt;br /&gt;  &amp;lt;Columns&amp;gt;		&lt;br /&gt;    ...&lt;br /&gt;    &amp;lt;asp:TemplateField&amp;gt;&lt;br /&gt;      &amp;lt;itemtemplate&amp;gt;&lt;br /&gt;        &amp;lt;img id=&amp;quot;imgBtn&amp;quot; alt=&amp;quot;Some Text&amp;quot; src=&amp;quot;/at.gv.noe/Images/Delete.gif&amp;quot; onclick=&amp;quot;DoSomething(&amp;lt;%# Container.DataItemIndex + (GridView.ShowHeader ? 1 : 0) %&amp;gt;)&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;/itemtemplate&amp;gt;&lt;br /&gt;    &amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;    ...&lt;br /&gt;  &amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/controls:BuilEditGridView&amp;gt;&lt;br /&gt; &lt;br /&gt;So If I click on line 2 the function is called with parameter value 2. That is want I want to have. But it does not work if I click on an Insert Row. That means for instance I set the insert&lt;i&gt;row&lt;/i&gt;count to 5 and I get 5 additional lines. If I click on one of the insert lines the Container.DataItemIndex always returns something like undefined. But never the actual RowIndex.&lt;br /&gt; &lt;br /&gt;How can I solve this?&lt;br /&gt; &lt;br /&gt;br&lt;br /&gt;Thomas&lt;br /&gt;
&lt;/div&gt;</description><author>pulla</author><pubDate>Tue, 08 Apr 2008 08:08:26 GMT</pubDate><guid isPermaLink="false">NEW POST: BulkEditGridView + InsertRows + Current Row Index by Container.DataItemIndex 20080408080826A</guid></item><item><title>NEW POST: ASP.Net Ajax 2.0</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=18649</link><description>&lt;div class="wikidoc"&gt;
I don't know if this issue is still pending. However, I had the same issue. &lt;br /&gt; &lt;br /&gt;Following, the AddChangedHandler ist called by InitializeRow. For each row you call AddChangeHandler with its controls. But in case of an Update Panel the controls do not exist yet. Therefore, I take the concrete row from the InnerTable instead. If you access the Controls from the InnerTable all Controls are present.&lt;br /&gt; &lt;br /&gt;Hope this helps.&lt;br /&gt; &lt;br /&gt;br&lt;br /&gt;Thomas&lt;br /&gt;
&lt;/div&gt;</description><author>pulla</author><pubDate>Tue, 08 Apr 2008 07:52:10 GMT</pubDate><guid isPermaLink="false">NEW POST: ASP.Net Ajax 2.0 20080408075210A</guid></item><item><title>COMMENTED ISSUE: Insert Row Dropdowns Not Populating</title><link>http://www.codeplex.com/ASPNetRealWorldContr/WorkItem/View.aspx?WorkItemId=529</link><description>I want to use the insert row, but it will not populate my drop down lists with any values.  It will actually insert a row, but I need the drop down lists populated.  Any ideas&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: r_jitu ** &lt;p&gt;Finally got the dropdown solution.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;using System&amp;#59;&lt;br /&gt;using System.Collections.Generic&amp;#59;&lt;br /&gt;using System.Text&amp;#59;&lt;br /&gt;using System.Web.UI.WebControls&amp;#59;&lt;br /&gt;using System.Web.UI&amp;#59;&lt;br /&gt;using System.Collections&amp;#59;&lt;/p&gt;&lt;p&gt;namespace ABC&lt;br /&gt;&amp;#123;&lt;br /&gt;    public class DropDownField &amp;#58; BoundField&lt;br /&gt;    &amp;#123;&lt;br /&gt;        &amp;#47;&amp;#47;DataSourceView dataView&amp;#59;&lt;/p&gt;&lt;p&gt;        &amp;#35;region Properties&lt;/p&gt;&lt;p&gt;        public string ListDataTextField&lt;br /&gt;        &amp;#123;&lt;br /&gt;            get&lt;br /&gt;            &amp;#123;&lt;br /&gt;                object val &amp;#61; this.ViewState&amp;#91;&amp;#34;ListDataTextField&amp;#34;&amp;#93;&amp;#59;&lt;br /&gt;                if &amp;#40;null &amp;#61;&amp;#61; val&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    return String.Empty&amp;#59;&lt;br /&gt;                &amp;#125;&lt;/p&gt;&lt;p&gt;                return &amp;#40;string&amp;#41;val&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            set&lt;br /&gt;            &amp;#123;&lt;br /&gt;                if &amp;#40;0 &amp;#33;&amp;#61; String.CompareOrdinal&amp;#40;value, this.ListDataTextField&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    this.ViewState&amp;#91;&amp;#34;ListDataTextField&amp;#34;&amp;#93; &amp;#61; value&amp;#59;&lt;br /&gt;                    base.OnFieldChanged&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;        public string ListDataValueField&lt;br /&gt;        &amp;#123;&lt;br /&gt;            get&lt;br /&gt;            &amp;#123;&lt;br /&gt;                object val &amp;#61; this.ViewState&amp;#91;&amp;#34;ListDataValueField&amp;#34;&amp;#93;&amp;#59;&lt;br /&gt;                if &amp;#40;null &amp;#61;&amp;#61; val&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    return String.Empty&amp;#59;&lt;br /&gt;                &amp;#125;&lt;/p&gt;&lt;p&gt;                return &amp;#40;string&amp;#41;val&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            set&lt;br /&gt;            &amp;#123;&lt;br /&gt;                if &amp;#40;0 &amp;#33;&amp;#61; String.CompareOrdinal&amp;#40;value, this.ListDataValueField&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    this.ViewState&amp;#91;&amp;#34;ListDataValueField&amp;#34;&amp;#93; &amp;#61; value&amp;#59;&lt;br /&gt;                    base.OnFieldChanged&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;        &amp;#91;IDReferenceProperty&amp;#40;typeof&amp;#40;DataSourceControl&amp;#41;&amp;#41;, Themeable&amp;#40;false&amp;#41;&amp;#93;&lt;br /&gt;        public string ListDataSourceID&lt;br /&gt;        &amp;#123;&lt;br /&gt;            get&lt;br /&gt;            &amp;#123;&lt;br /&gt;                object val &amp;#61; this.ViewState&amp;#91;&amp;#34;ListDataSourceID&amp;#34;&amp;#93;&amp;#59;&lt;br /&gt;                if &amp;#40;null &amp;#61;&amp;#61; val&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    return String.Empty&amp;#59;&lt;br /&gt;                &amp;#125;&lt;/p&gt;&lt;p&gt;                return &amp;#40;string&amp;#41;val&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            set&lt;br /&gt;            &amp;#123;&lt;br /&gt;                if &amp;#40;0 &amp;#33;&amp;#61; String.CompareOrdinal&amp;#40;value, this.ListDataSourceID&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    this.ViewState&amp;#91;&amp;#34;ListDataSourceID&amp;#34;&amp;#93; &amp;#61; value&amp;#59;&lt;br /&gt;                    base.OnFieldChanged&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;        &amp;#35;endregion&lt;/p&gt;&lt;p&gt;        protected override object GetDesignTimeValue&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            return 0&amp;#59;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;        protected override void InitializeDataCell&amp;#40;DataControlFieldCell cell, DataControlRowState rowState&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            if &amp;#40;&amp;#40;&amp;#33;this.ReadOnly &amp;#38;&amp;#38; &amp;#40;0 &amp;#33;&amp;#61; &amp;#40;rowState &amp;#38; DataControlRowState.Edit&amp;#41;&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#124;&amp;#124; 0 &amp;#33;&amp;#61; &amp;#40;rowState &amp;#38; DataControlRowState.Insert&amp;#41;&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                DropDownList ddl &amp;#61; new DropDownList&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                ddl.ToolTip &amp;#61; this.HeaderText&amp;#59;&lt;br /&gt;                &amp;#47;&amp;#47;ddl.ID &amp;#61; &amp;#34;ddlList&amp;#34;&amp;#59;&lt;/p&gt;&lt;p&gt;                if &amp;#40;&amp;#33;String.IsNullOrEmpty&amp;#40;this.DataField&amp;#41; &amp;#38;&amp;#38; 0 &amp;#33;&amp;#61; &amp;#40;rowState &amp;#38; DataControlRowState.Edit&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    ddl.Load &amp;#43;&amp;#61; new EventHandler&amp;#40;ddl_Load&amp;#41;&amp;#59;&lt;br /&gt;                    ddl.DataBinding &amp;#43;&amp;#61; new EventHandler&amp;#40;HandleDataBinding&amp;#41;&amp;#59;&lt;br /&gt;                    ddl.DataBound &amp;#43;&amp;#61; new EventHandler&amp;#40;HandleDataBound&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;/p&gt;&lt;p&gt;                cell.Controls.Add&amp;#40;ddl&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            else if &amp;#40;&amp;#33;String.IsNullOrEmpty&amp;#40;this.DataField&amp;#41;&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                Label lbl &amp;#61; new Label&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                lbl.DataBinding &amp;#43;&amp;#61; new EventHandler&amp;#40;HandleDataBinding&amp;#41;&amp;#59;&lt;br /&gt;                cell.Controls.Add&amp;#40;lbl&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;        public override void ExtractValuesFromCell&amp;#40;System.Collections.Specialized.IOrderedDictionary dictionary, DataControlFieldCell cell, DataControlRowState rowState, bool includeReadOnly&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            if &amp;#40;cell.HasControls&amp;#40;&amp;#41; &amp;#38;&amp;#38; cell.Controls&amp;#91;0&amp;#93; is DropDownList&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                DropDownList ddl &amp;#61; &amp;#40;DropDownList&amp;#41;cell.Controls&amp;#91;0&amp;#93;&amp;#59;&lt;br /&gt;                dictionary&amp;#91;this.DataField&amp;#93; &amp;#61; String.IsNullOrEmpty&amp;#40;ddl.SelectedValue&amp;#41; &amp;#63; null &amp;#58; ddl.SelectedValue&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;        void ddl_Load&amp;#40;object sender, EventArgs e&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            Control ctrl &amp;#61; &amp;#40;Control&amp;#41;sender&amp;#59;&lt;br /&gt;            &amp;#47;&amp;#47;ctrl.Load -&amp;#61; new EventHandler&amp;#40;ddl_Load&amp;#41;&amp;#59;&lt;br /&gt;            if &amp;#40;ctrl.NamingContainer is GridViewRow &amp;#38;&amp;#38; &amp;#40;&amp;#40;GridViewRow&amp;#41;ctrl.NamingContainer&amp;#41;.DataItem &amp;#61;&amp;#61; null &amp;#38;&amp;#38; &amp;#40;&amp;#40;GridViewRow&amp;#41;ctrl.NamingContainer&amp;#41;.RowState &amp;#61;&amp;#61; &amp;#40;DataControlRowState.Edit &amp;#124; DataControlRowState.Insert&amp;#41;&amp;#41;&lt;br /&gt;            &amp;#123; &amp;#47;&amp;#47; databind list because this is insert row&lt;br /&gt;                ctrl.DataBind&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;        &amp;#47;&amp;#47;void ddl_Load&amp;#40;object sender, EventArgs e&amp;#41;&lt;br /&gt;        &amp;#47;&amp;#47;&amp;#123;&lt;br /&gt;        &amp;#47;&amp;#47;    Control ctrl &amp;#61; &amp;#40;Control&amp;#41;sender&amp;#59;&lt;br /&gt;        &amp;#47;&amp;#47;&amp;#125;&lt;/p&gt;&lt;p&gt;        &amp;#47;&amp;#47;&amp;#47; &amp;#60;summary&amp;#62;&lt;br /&gt;        &amp;#47;&amp;#47;&amp;#47; Callback from the datasourceview.&lt;br /&gt;        &amp;#47;&amp;#47;&amp;#47; &amp;#60;&amp;#47;summary&amp;#62;&lt;br /&gt;        &amp;#47;&amp;#47;&amp;#47; &amp;#60;param name&amp;#61;&amp;#34;data&amp;#34;&amp;#62;&amp;#60;&amp;#47;param&amp;#62;&lt;br /&gt;        void DataSourceCallback&amp;#40;IEnumerable data&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            this.data &amp;#61; data&amp;#59;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;        IEnumerable data &amp;#61; null&amp;#59;&lt;/p&gt;&lt;p&gt;        void HandleDataBinding&amp;#40;object sender, EventArgs e&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            Control ctrl &amp;#61; &amp;#40;Control&amp;#41;sender&amp;#59;&lt;br /&gt;            if &amp;#40;null &amp;#61;&amp;#61; data&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                &amp;#47;&amp;#47;Cache the data from the DataSourceControl, so that we only get the data once.  If &lt;br /&gt;                &amp;#47;&amp;#47;we just set the DataSourceID on the dropdown, the select command would get called &lt;br /&gt;                &amp;#47;&amp;#47;once for each row.&lt;br /&gt;                DataSourceControl dsc &amp;#61; WebControlHelper.RecursiveFindControl&amp;#40;this.Control.NamingContainer, this.ListDataSourceID&amp;#41; as DataSourceControl&amp;#59;&lt;br /&gt;                if &amp;#40;null &amp;#33;&amp;#61; dsc&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    DataSourceView dsv &amp;#61; &amp;#40;&amp;#40;IDataSource&amp;#41;dsc&amp;#41;.GetView&amp;#40;&amp;#34;DefaultView&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;                    dsv.Select&amp;#40;DataSourceSelectArguments.Empty, new DataSourceViewSelectCallback&amp;#40;this.DataSourceCallback&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;/p&gt;&lt;p&gt;            if &amp;#40;ctrl is DropDownList&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                DropDownList ddl &amp;#61; &amp;#40;DropDownList&amp;#41;ctrl&amp;#59;&lt;br /&gt;                ddl.DataTextField &amp;#61; this.ListDataTextField&amp;#59;&lt;br /&gt;                ddl.DataValueField &amp;#61; this.ListDataValueField&amp;#59;&lt;br /&gt;                ddl.DataSource &amp;#61; this.data&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            else if &amp;#40;ctrl is Label&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                Label lbl &amp;#61; &amp;#40;Label&amp;#41;ctrl&amp;#59;&lt;/p&gt;&lt;p&gt;                DropDownList temp &amp;#61; new DropDownList&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                temp.DataTextField &amp;#61; this.ListDataTextField&amp;#59;&lt;br /&gt;                temp.DataValueField &amp;#61; this.ListDataValueField&amp;#59;&lt;br /&gt;                temp.DataSource &amp;#61; this.data&amp;#59;&lt;br /&gt;                temp.Visible &amp;#61; false&amp;#59;&lt;/p&gt;&lt;p&gt;                lbl.Controls.Add&amp;#40;temp&amp;#41;&amp;#59;&lt;br /&gt;                temp.DataBind&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                object rawVal &amp;#61; GetValue&amp;#40;ctrl.NamingContainer&amp;#41;&amp;#59;&lt;br /&gt;                string val &amp;#61; &amp;#40;null &amp;#61;&amp;#61; rawVal &amp;#63; null &amp;#58; rawVal.ToString&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;/p&gt;&lt;p&gt;                lbl.Text &amp;#61; String.Empty&amp;#59;&lt;br /&gt;                foreach &amp;#40;ListItem li in temp.Items&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    if &amp;#40;0 &amp;#61;&amp;#61; String.Compare&amp;#40;li.Value, val&amp;#41;&amp;#41;&lt;br /&gt;                        lbl.Text &amp;#61; li.Text&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;        void HandleDataBound&amp;#40;object sender, EventArgs e&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            Control ctrl &amp;#61; &amp;#40;Control&amp;#41;sender&amp;#59;&lt;br /&gt;            if &amp;#40;&amp;#33;&amp;#40;ctrl.NamingContainer is GridViewRow&amp;#41; &amp;#124;&amp;#124; &amp;#40;&amp;#40;GridViewRow&amp;#41;ctrl.NamingContainer&amp;#41;.DataItem &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                &amp;#47;&amp;#47;string val &amp;#61; GetValue&amp;#40;ctrl.NamingContainer&amp;#41; as string&amp;#59;&lt;br /&gt;                string val &amp;#61; GetValue&amp;#40;ctrl.NamingContainer&amp;#41;.ToString&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                DropDownList ddl &amp;#61; ctrl as DropDownList&amp;#59;&lt;br /&gt;                if &amp;#40;null &amp;#33;&amp;#61; ddl&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    &amp;#47;&amp;#47;make sure the appropriate value is selected&lt;br /&gt;                    ListItem li &amp;#61; ddl.Items.FindByValue&amp;#40;val&amp;#41;&amp;#59;&lt;br /&gt;                    if &amp;#40;null &amp;#33;&amp;#61; li&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        li.Selected &amp;#61; true&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&amp;#125;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description><author>r_jitu</author><pubDate>Thu, 03 Apr 2008 15:01:39 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Insert Row Dropdowns Not Populating 20080403030139P</guid></item><item><title>NEW POST: FrozenGridView in an UpdatePanel</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=25118</link><description>&lt;div class="wikidoc"&gt;
Hi&lt;br /&gt; &lt;br /&gt;Has anyone managed to freeze the header of a FrozenGridView in an UpdatePanel? Mine just scrolls as in an ordinary GridView after I put it inside an UpdatePanel. &lt;br /&gt; &lt;br /&gt;Thanks&lt;br /&gt;Simon&lt;br /&gt;
&lt;/div&gt;</description><author>simm0n</author><pubDate>Tue, 01 Apr 2008 17:21:00 GMT</pubDate><guid isPermaLink="false">NEW POST: FrozenGridView in an UpdatePanel 20080401052100P</guid></item><item><title>NEW POST: DropDownField - Binding</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=24051</link><description>&lt;div class="wikidoc"&gt;
 &lt;br /&gt;I'm a new user of the Real World Controls and I'm trying to use a DropDownField in one of the columns of&lt;br /&gt;a BulkEditViewControl. &lt;br /&gt; &lt;br /&gt;The problem is that even if the drop down is populated, no value is selected when the web page was loaded and when I'm saving the BulkEditViewControl &lt;br /&gt;all the other binded field are saved to the database but nothing is saved for field of type DropDownField.&lt;br /&gt; &lt;br /&gt;Probably I'm missing something... How could I setup this field to have a selected value and save the data in his related row data item on datasource row inserting?&lt;br /&gt; &lt;br /&gt;Here is the Aspx DropDownField declaration:&lt;br /&gt; &lt;br /&gt;                &amp;lt;cc1:DropDownField DataField=&amp;quot;ClienteleTypeID&amp;quot; ListDataSourceID=&amp;quot;dsClienteleType&amp;quot; ListDataTextField=&amp;quot;Description&amp;quot;&lt;br /&gt;                           ListDataValueField=&amp;quot;ClienteleTypeID&amp;quot; HeaderText=&amp;quot;ClienteleTypeID&amp;quot;   SortExpression=&amp;quot;ClienteleTypeID&amp;quot; &amp;gt;&lt;br /&gt;                &amp;lt;/cc1:DropDownField&amp;gt; &lt;br /&gt; &lt;br /&gt;How could I achieve databinding on DropDownField ?&lt;br /&gt; &lt;br /&gt;Thank's a bunch!&lt;br /&gt; &lt;br /&gt;Simon Rousseau&lt;br /&gt;CSSMI&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>TocydLive</author><pubDate>Fri, 14 Mar 2008 14:01:49 GMT</pubDate><guid isPermaLink="false">NEW POST: DropDownField - Binding 20080314020149P</guid></item><item><title>NEW POST: FrozenGridView empty when Binding to dataset.table[n]</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=24042</link><description>&lt;div class="wikidoc"&gt;
Hi,&lt;br /&gt;I'm using the frozengridview as follow:&lt;br /&gt; &lt;br /&gt;DataSet dsXml = new DataSet();&lt;br /&gt;dsXml.ReadXml(new StringReader(xmlResult));&lt;br /&gt;uxSearchDataResultsList.DataSource = dsXml.Tables&lt;a href="http://www.codeplex.com/ASPNetRealWorldContr/Wiki/View.aspx?title=%22REGISTER%22"&gt;&amp;quot;REGISTER&amp;quot;&lt;/a&gt;;&lt;br /&gt;uxSearchDataResultsList.DataBind();&lt;br /&gt; &lt;br /&gt;That code works properly with an asp:gridview but with FrozenGridView shows empty. Debugging i've seen that CreateChildControls() returns -1.&lt;br /&gt; &lt;br /&gt;Any suggestion for do this item working?&lt;br /&gt;Thanks.&lt;br /&gt;
&lt;/div&gt;</description><author>josema</author><pubDate>Fri, 14 Mar 2008 12:22:44 GMT</pubDate><guid isPermaLink="false">NEW POST: FrozenGridView empty when Binding to dataset.table[n] 20080314122244P</guid></item><item><title>NEW POST: Error adding new columns... 'Error Invoking 'Edit Columns</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=23769</link><description>&lt;div class="wikidoc"&gt;
I've attempted to use the FrozenGridView class. I've successfully registered the control in a VS2005 test website and I&amp;quot;m able to add the control to a webpage but when I try to add a column I receive an error message: &lt;b&gt;Error invoking 'Edit Columns....' Details: The method or operation is not implemented.&lt;/b&gt; &lt;br /&gt; &lt;br /&gt;As a workaround, I can take a standard Gridview control, and create the required columns. If I cut and paste the &amp;quot;rwg:FrozenGridView&amp;quot; tag prefix on to the standard gridview control, it doesn't have the above problem unless I then try to add an additional column. I can compile the page and it will render the grid, columns, data and freeze the column header as intended. &lt;br /&gt; &lt;br /&gt;Anyone have any suggestions? &lt;br /&gt;
&lt;/div&gt;</description><author>jmarcum</author><pubDate>Tue, 11 Mar 2008 13:35:35 GMT</pubDate><guid isPermaLink="false">NEW POST: Error adding new columns... 'Error Invoking 'Edit Columns 20080311013535P</guid></item><item><title>NEW POST: Response.Redirect after PostBack</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=23713</link><description>&lt;div class="wikidoc"&gt;
My compliments on the RealWorlds.Grid project!!! I am attempting to do a Response.Redirect in the PostBack after the records are updated when I use the BulkEditGridView. Could you direct me to where I need to make this call?&lt;br /&gt;
&lt;/div&gt;</description><author>UR1Down</author><pubDate>Mon, 10 Mar 2008 17:11:10 GMT</pubDate><guid isPermaLink="false">NEW POST: Response.Redirect after PostBack 20080310051110P</guid></item><item><title>NEW POST: Dynamic Datasource Binding, Rowupdating problem</title><link>http://www.codeplex.com/ASPNetRealWorldContr/Thread/View.aspx?ThreadId=23688</link><description>&lt;div class="wikidoc"&gt;
Hi guys, I have searched for hours and days to solve this problem, but haven't found any clear solution.&lt;br /&gt; &lt;br /&gt;The problem is simple:&lt;br /&gt; &lt;br /&gt;I add a SQL datasource to the bulkedit gridview at runtime. Everything works fine untill I want to save the changes. &lt;br /&gt;I get the error stating that the event RowUpdating is not handled. &lt;br /&gt;Some solutions say you have to build your own updating method. But I'm at a loss here.&lt;br /&gt; &lt;br /&gt;Do I create an eventhandler for RowUpdating in the source code for BulkEditGridview, or should I do this in the code behind file of the ASPX where I use the control.&lt;br /&gt; &lt;br /&gt;How do i get the Newvalues collection in this method?&lt;br /&gt; &lt;br /&gt;I someone could show me some sample code, it would be most helpfull. &lt;br /&gt;
&lt;/div&gt;</description><author>Kythor</author><pubDate>Mon, 10 Mar 2008 13:02:14 GMT</pubDate><guid isPermaLink="false">NEW POST: Dynamic Datasource Binding, Rowupdating problem 20080310010214P</guid></item></channel></rss>