﻿<?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 - WebCombo - Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</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>Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</link><pubDate>Wed, 21 Oct 2009 23:26:42 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;I think the same question with &lt;a href="http://www.intersoftpt.com/Community/WebCombo/Add-webcombo-in-webgrid-column-using-code-behind/" target="_blank"&gt;this thread&lt;/a&gt; that you created. Please see the response from that thread. Thank you.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</link><pubDate>Wed, 14 Oct 2009 00:41:26 GMT</pubDate><dc:creator>chetan.apwar@aressindia.net</dc:creator><description>&lt;p&gt;Hi Dicky,&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; font-family: arial;"&gt; Thank you for the replies. Understood the answers.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: arial;"&gt;&lt;!--[if !supportEmptyParas]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoBodyText"&gt;In my required scenario, I would need to create webgrid columns
runtime as requested by user. Many columns are drop down type. I understood, I have
to use “integrated dropdropdown menu” built-in webgrid for this purpose. &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: arial;"&gt;I have checked samples provided with the trial package to
implement same, but unsuccessful. Can you please give me small sample to use “integrated
dropdropdown menu” in grid using detch at runtime.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: arial;"&gt;&lt;!--[if !supportEmptyParas]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/p&gt;
&lt;span style="font-size: 10pt; font-family: arial;"&gt;Thank you again.&lt;/span&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</link><pubDate>Tue, 13 Oct 2009 02:10:10 GMT</pubDate><dc:creator>Dicky</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;I have 2 more question with same topic.&lt;/p&gt;&lt;p&gt;1. If the grid would require more than one columns with drop down type, do i need that many number of web combo in page?&lt;/p&gt;&lt;p&gt;2. Currently web grid column with web comb shows "DataValueField", please give me the method to show "DataTextField".&lt;/p&gt;&lt;p&gt;Thanks again.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;1. If drop down type that you mean is using WebCombo then the answer is yes, but if you are using integrated dropdropdown menu built-in WebGrid then you don't need to add any control for it, because it is already built-in on WebGrid.&lt;/p&gt;
&lt;p&gt;2. You need to use WebValueList to fulfil your scenario. If you check on my sample you will find if I also add WebValueList after I set WebGridColumn EditType with WebCombo. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Feel free if you have another question.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Dicky&lt;/p&gt;</description></item><item><title>Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</link><pubDate>Mon, 12 Oct 2009 05:46:03 GMT</pubDate><dc:creator>chetan.apwar@aressindia.net</dc:creator><description>&lt;p&gt;Hello Dicky,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you for example i have followed steps and it works.&lt;/p&gt;
&lt;p&gt;I have 2 more question with same topic.&lt;/p&gt;
&lt;p&gt;1. If the grid would require more than one columns with drop down type, do i need that many number of web combo in page?&lt;/p&gt;
&lt;p&gt;2. Currently web grid column with web comb shows "DataValueField", please give me the method to show "DataTextField".&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</link><pubDate>Mon, 12 Oct 2009 03:47:55 GMT</pubDate><dc:creator>Dicky</dc:creator><description>&lt;p&gt;Hi Chetan,&lt;/p&gt;
&lt;p&gt;If I check on your code sample, you made an incorrect way to bind the WebGrid. You should use OnInitializeDataSource event in order to bind data to WebGrid. And also I'm not sure where you assign WebValueList for Column #2 and set the WebCombo EditType but you should assign it onPrepareDataBinding event.&lt;/p&gt;
&lt;p&gt;I have created a simple sample for you [using northwind.mdb] and I hope this can helps you to figure out the issue. Please find attached sample named WGIntegratedWC.zip.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Dicky&lt;/p&gt;</description></item><item><title>Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</link><pubDate>Mon, 12 Oct 2009 03:09:43 GMT</pubDate><dc:creator>chetan.apwar@aressindia.net</dc:creator><description>&lt;p&gt;Hello &lt;span style="font-size: 13px;"&gt;&lt;span style="font-size: 13px;"&gt;Dicky,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Thanks for quick reply,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have tried the same grid gets loaded when i click any cell of column having dropd down box it prompt me alert "Can't find webcombo.net instance with ID".&lt;/p&gt;
&lt;p&gt;My code is follows, please suggest me solution.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;DataTable objDT = GetData(int.Parse(hiddenProjectID.Value), 0, 0, 50);&lt;br /&gt; // UltraWebGridData.InitializeLayout &amp;#43;= new LayoutEventHandler(UltraWebGridData_InitializeLayout);&lt;br /&gt; UltraWebGridData.DataSource = objDT;&lt;br /&gt; UltraWebGridData.DataBind();&lt;br /&gt; DataTable locationshash = GetLocations();//webcomobo data&lt;br /&gt; locationshash.TableName = "tbllocation";&lt;br /&gt; WebValueList v1Items = UltraWebGridData.RootTable.Columns[2].ValueList;&lt;br /&gt; v1Items.DataSource = locationshash;&lt;br /&gt; v1Items.DataMember = "tbllocation";&lt;br /&gt; v1Items.DataTextField = "Description";&lt;br /&gt; v1Items.DataValueField = "LocationId";&lt;br /&gt; WebGridColumn colLocation = UltraWebGridData.RootTable.Columns[2];&lt;br /&gt; colLocation.EditType = EditType.WebComboNET;&lt;br /&gt; colLocation.WebComboID = "WebCombo1";&lt;/p&gt;
&lt;p&gt;"WebCombo1" is design time webcomobo in form.&lt;/p&gt;
&lt;p&gt;Also for more than one column of drop down type in a grid. would required same number of webcombo on page.&lt;/p&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;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</link><pubDate>Mon, 12 Oct 2009 02:37:26 GMT</pubDate><dc:creator>Dicky</dc:creator><description>&lt;p&gt;Hello Chetan,&lt;/p&gt;
&lt;p&gt;Thank you for your interest with our product. You can try to set it onPrepareDataBinding event instead of OnInitializeLayout, and here the code snippet:&lt;/p&gt;
&lt;p&gt;if(!IsPostBack)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;WebValueList&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; v1Items = WebGrid1.RootTable.Columns.GetNamedItem(&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"CustomerID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).ValueList; &lt;p&gt;v1Items.DataSource = daCustomer.GetData();&lt;/p&gt;v1Items.DataMember = &lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"Customers"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;;v1Items.DataTextField = &lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"CompanyName"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;;v1Items.DataValueField = &lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"CustomerID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;;&lt;/span&gt; 
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt; &lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; colCustomer = wgPhase.RootTable.Columns.GetNamedItem(&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"CustomerID"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); 
&lt;p&gt;colCustomer .EditType = &lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;EditType&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;.WebComboNET; colCustomer .WebComboID = &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;&lt;span style="font-size: 13px; color: #2b91af"&gt;EditType&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;.WebComboNET; colCustomer .WebComboID = &lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"wcCustomer"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;;&lt;/span&gt; &lt;p&gt;&lt;span style="font-size: 13px"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;Dicky&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description></item><item><title>Webcombo add in webgrid column by code behind</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-add-in-webgrid-column-by-code-behind/</link><pubDate>Mon, 12 Oct 2009 02:18:52 GMT</pubDate><dc:creator>chetan.apwar@aressindia.net</dc:creator><description>&lt;p&gt;&lt;br /&gt;Hello team,&lt;br /&gt;&lt;br /&gt;I am evaluating the sample according to our requirement.&lt;br /&gt;&lt;br /&gt;We need to show drop down list box in Webgrid column.&lt;br /&gt;&lt;br /&gt;Such a that Web grid columns generate at runtime. In generated columns one or more columns of type drop down. Whose all value list items should add in code behind at once.&lt;br /&gt;&lt;br /&gt;I have tried to do it in “WebGrid1_InitializeLayout” method. But unsucessful.&lt;br /&gt;&lt;br /&gt;I have tried to attach prefill webcombo to webgrid column, it was also failed.&lt;br /&gt;&lt;br /&gt;Please provide me help on the adding drop down list box in web grid column.&lt;br /&gt;&lt;br /&gt;Thank you in advanced. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>