Telerik Forums
UI for WinForms Forum
2 answers
173 views
Default filter condition on a Filter is "Contains"
When I enter text in the filter text box, the Grid filter OK,
Now if I remove all Text, filter switches to "No Filter", an subsequent entry of text does nothing until I change to another filter again.

Also note that I can enter Text even if the Filter is on "No Filter", while as if I choose "No Filter" from the Menu, the filter Textbox is disabled an I cannot enter Text.

Regards
Erwin
Vassil Petev
Telerik team
 answered on 21 Jul 2010
1 answer
173 views
Hi,

I have a GridView control that I bind to a dataset that contains two tables.  I then create the relationship and display the hierarchy fine.  I want to control the way that new rows are added in my grid so the AllowAddNewRow for both master and child tables is set to false.  I have a custom form that creates new rows.  To simulate this, I just have a command column that inserts some hardcoded values into the grid.
The problem is that I cannot get the grid to refresh with the newly added records in the child table.  When I click the "Add" command column, a vertical scroll bar appears in the child table but I cannot see the rows.  Below is the sample code that I have.  Any ideas will be greatly appreciated.  Thanks.

Private

 

Sub frmCustomProperties_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

 

 

 


Dim
adpProperties As New SqlDataAdapter()

 

' ... here I populate the database with two tables named cntCustomProperties and PropertyValues

 

adpProperties.Fill(dsProperties)

 

 

 

' set the master

 

 

grdProperties.DataSource = dsProperties.Tables(

"cntCustomProperties")

 

grdProperties.MasterGridViewTemplate.AllowAddNewRow =

 

False

 

 

grdProperties.MasterGridViewTemplate.AllowDeleteRow =

False

 

 

grdProperties.MasterGridViewTemplate.AllowEditRow =

False

 

 

 

' template for values

 

 

 

Dim ValuesTemplate As Telerik.WinControls.UI.GridViewTemplate = New Telerik.WinControls.UI.GridViewTemplate

 

ValuesTemplate.DataSource = dsProperties.Tables(

 

"PropertyValues")

 

ValuesTemplate.AllowAddNewRow =

 

False

 

 

ValuesTemplate.AllowDeleteRow =

False

 

 

ValuesTemplate.AllowEditRow =

False

 

 

grdProperties.MasterGridViewTemplate.ChildGridViewTemplates.Add(ValuesTemplate)

 

' configure relation between two tables

 

 

 

Dim relation As Telerik.WinControls.UI.GridViewRelation = New Telerik.WinControls.UI.GridViewRelation(grdProperties.MasterGridViewTemplate)

 

relation.ChildTemplate = ValuesTemplate

relation.RelationName =

 

"p2v"

 

 

relation.ParentColumnNames.Add(

"PropertyId")

 

relation.ChildColumnNames.Add(

 

"PropertyId")

 

grdProperties.Relations.Add(relation)

 

 

' now configure the two templates

 

 

grdProperties.MasterGridViewTemplate.Columns(

"PropertyId").IsVisible = False

 

 

grdProperties.MasterGridViewTemplate.Columns(

"PropertyName").BestFit()

 

 

 

Dim cmdColumnAdd As New GridViewCommandColumn()

 

cmdColumnAdd.UniqueName =

 

"cmdColumnAdd"

 

 

cmdColumnAdd.UseDefaultText =

True

 

 

cmdColumnAdd.DefaultText =

"Add"

 

 

cmdColumnAdd.FieldName =

"PropertyId"

 

 

cmdColumnAdd.HeaderText =

"Add"

 

 

cmdColumnAdd.BestFit()

grdProperties.MasterGridViewTemplate.Columns.Add(cmdColumnAdd)

ValuesTemplate.Columns(

"PropertyId").IsVisible = False

 

 

ValuesTemplate.Columns(

"PropertyValueId").IsVisible = False

 

 

ValuesTemplate.Columns(

"CompanyCode").IsVisible = False

 

 

ValuesTemplate.Columns(

"EffectiveFrom").BestFit()

 

ValuesTemplate.Columns(

 

"Value").BestFit()

 

 

 

Dim cmdColumnEdit As New GridViewCommandColumn

 

cmdColumnEdit.UniqueName =

 

"cmdColumnEdit"

 

 

cmdColumnEdit.UseDefaultText =

True

 

 

cmdColumnEdit.DefaultText =

"Edit"

 

 

cmdColumnEdit.FieldName =

"PropertyValueId"

 

 

cmdColumnEdit.HeaderText =

"Edit"

 

 

cmdColumnEdit.BestFit()

ValuesTemplate.Columns.Add(cmdColumnEdit)

 

 

AddHandler grdProperties.CommandCellClick, AddressOf grdProperties_CommandCellClick

 

 

 

 

 

End Sub


 

Sub

 

grdProperties_CommandCellClick(ByVal sender As Object, ByVal e As EventArgs)

 

 

 

Dim cmdCell As GridCommandCellElement

 

cmdCell =

 

TryCast(sender, GridCommandCellElement)

 

 

 

Dim tName As String = CType(cmdCell.ViewTemplate.DataSource, DataTable).TableName

 

 

 

If tName = "cntCustomProperties" Then

 

 

 

 

 

   AddCustomProperty(cmdCell.Value)

 

 

ElseIf tName = "PropertyValues" Then

 

 

 

 

 

   '-- code for the edit here

 

End If

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

End Sub

 

 

 

 

 

 

 



Private
Sub AddCustomProperty(ByVal pid As Integer)

 

 

 


Dim
nr As DataRow = dsProperties.Tables("PropertyValues").NewRow

 

nr.BeginEdit()

nr(

 

"propertyid") = pid

 

nr(

 

"companycode") = "10"
nr(
"effectivefrom") = "1900/1/1"

 

 

 

 

 

nr(

 

"value") = "some new value here"

 

 

 

 

 

nr.EndEdit()

dsProperties.Tables(

 

"PropertyValues").Rows.Add(nr)

 

dsProperties.Tables(

 

"PropertyValues").AcceptChanges()

 

' I have tried many combinations but none seems to work.
grdProperties.GridElement.Update(GridUINotifyAction.AddRow)

 

 

'grdProperties.MasterGridViewTemplate.Update(GridUINotifyAction.BatchDataChanged)

 

 

 

 

 

 

 

'grdProperties.MasterGridViewTemplate.ChildGridViewTemplates(0).Update(GridUINotifyAction.BatchDataChanged))

 

 

 

 

 

 

 

 

End Sub

 

 

 

Jack
Telerik team
 answered on 20 Jul 2010
1 answer
158 views
Hi,

I'm using Gridview Winforms in C#

I have a Grid view with 2 level hierarchy. I want a Checkbox as the first column for both Parent and Child rows.

When the Parent Checkbox is selected, all the associated child records should be checked as well.

How to achieve this ? Please suggest me at the earliest

Thanks
Mike

Jack
Telerik team
 answered on 20 Jul 2010
1 answer
88 views

Hello everyone, my question is this.  
I have a RadCorousel control in my application.

I’d like to know if it’s possible to add other controls (like GroupBox, Grid, Charts and so on..)

If it’s possible, How can I do that?

Thank you..

Boryana
Telerik team
 answered on 20 Jul 2010
3 answers
1.3K+ views
What i want is to right click on a row of a radGridView then
rise up a contextmenustip for the user to click a button and get the current row index from the right click

How can i do this?

Martin Vasilev
Telerik team
 answered on 20 Jul 2010
1 answer
94 views

Hello everyone, my question is this.  
I have a RadCorousel control in my application.

I’d like to know if it’s possible to add other controls (like GroupBox, Grid, Charts and so on..)

If it’s possible, How can I do that?

Thank you..

Boryana
Telerik team
 answered on 20 Jul 2010
3 answers
164 views
Hi,

I have a row where it is has multiple lines, when I group by that column, I am not able to change the rowsize of the grouped row. it shows only half of the rowdetails.

can you please advise whether this is possible or not?

I have enclosed the screen print for a better understanding of the problem, .

regards,
Khizar
Jack
Telerik team
 answered on 20 Jul 2010
3 answers
219 views
Hi everyone,

I am no longer able to publish a working deployment of my solution since upgrading the Win Controls and Reporting to the Q2 version.

From the publish point of view all seems to work fine, but when a user attempts to run the publish they are not able and the error details are as follows.

PLATFORM VERSION INFO
 Windows    : 6.1.7600.0 (Win32NT)
 Common Language Runtime  : 4.0.30319.1
 System.Deployment.dll   : 4.0.30319.1 (RTMRel.030319-0100)
 clr.dll    : 4.0.30319.1 (RTMRel.030319-0100)
 dfdll.dll    : 4.0.30319.1 (RTMRel.030319-0100)
 dfshim.dll    : 4.0.31106.0 (Main.031106-0000)

SOURCES
 Deployment url   : http://es01/Framework/Platform%20Framework%20v1.0/Platform/Apps/Launchpad/Platform.Apps.Launchpad/publish/retail/Platform.Apps.Launchpad.application
      Server  : Microsoft-IIS/6.0
      X-Powered-By : ASP.NET
 Application url   : http://es01/Framework/Platform%20Framework%20v1.0/Platform/Apps/Launchpad/Platform.Apps.Launchpad/publish/retail/Application%20Files/Platform.Apps.Launchpad_1_49_475_297/Platform.Apps.Launchpad.exe.manifest
      Server  : Microsoft-IIS/6.0
      X-Powered-By : ASP.NET

IDENTITIES
 Deployment Identity  : Platform.Apps.Launchpad.application, Version=1.49.475.297, Culture=neutral, PublicKeyToken=4d0711b5f89c8549, processorArchitecture=x86
 Application Identity  : Platform.Apps.Launchpad.exe, Version=1.49.475.297, Culture=neutral, PublicKeyToken=4d0711b5f89c8549, processorArchitecture=x86, type=win32

APPLICATION SUMMARY
 * Online only application.
 * Trust url parameter is set.
ERROR SUMMARY
 Below is a summary of the errors, details of these errors are listed later in the log.
 * Activation of http://es01/Framework/Platform%20Framework%20v1.0/Platform/Apps/Launchpad/Platform.Apps.Launchpad/publish/retail/Platform.Apps.Launchpad.application resulted in exception. Following failure messages were detected:
  + Value does not fall within the expected range.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
 No transaction error was detected.

WARNINGS
 There were no warnings during this operation.

OPERATION PROGRESS STATUS
 * [15/07/2010 6:39:22 PM] : Activation of http://es01/Framework/Platform%20Framework%20v1.0/Platform/Apps/Launchpad/Platform.Apps.Launchpad/publish/retail/Platform.Apps.Launchpad.application has started.
 * [15/07/2010 6:39:22 PM] : Processing of deployment manifest has successfully completed.
 * [15/07/2010 6:39:22 PM] : Installation of the application has started.
 * [15/07/2010 6:39:22 PM] : Processing of application manifest has successfully completed.
 * [15/07/2010 6:39:24 PM] : Found compatible runtime version 4.0.30319.
 * [15/07/2010 6:39:24 PM] : Detecting dependent assembly Telerik.WinControls, Version=2010.2.10.713, Culture=neutral, PublicKeyToken=5BB2A467CBEC794E, processorArchitecture=msil using Telerik.WinControls, Version=2010.2.10.713, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=msil.
 * [15/07/2010 6:39:24 PM] : Detecting dependent assembly TelerikCommon, Version=2010.1.10.504, Culture=neutral, PublicKeyToken=5BB2A467CBEC794E, processorArchitecture=msil using TelerikCommon, Version=2010.1.10.504, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=msil.
 * [15/07/2010 6:39:24 PM] : Detecting dependent assembly Telerik.Reporting, Version=4.1.10.714, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE, processorArchitecture=msil using Telerik.Reporting, Version=4.1.10.714, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=msil.
 * [15/07/2010 6:39:24 PM] : Request of trust and detection of platform is complete.
 * [15/07/2010 6:39:35 PM] : Downloading of subscription dependencies is complete.
 * [15/07/2010 6:39:35 PM] : Commit of the downloaded application has started.
 * [15/07/2010 6:39:36 PM] : Installation of application has successfully completed.

ERROR DETAILS
 Following errors were detected during this operation.
 * [15/07/2010 6:39:36 PM] System.ArgumentException
  - Value does not fall within the expected range.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
   at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
   at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
   at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
   at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
   at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
 * Transaction at [15/07/2010 6:39:36 PM]
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: OCXYZEE9.TWW.application
  + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
   - Status: Set
   - HRESULT: 0x0
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Launchpad.exe.manifest
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: InfinityIcon.ico
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Launchpad.exe.config
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.UI.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.UI.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Interop.Syspro.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Interop.Syspro.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.RadMarkupEditor.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.RadMarkupEditor.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Miscellaneous.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Miscellaneous.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Telerik.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Telerik.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Office2010.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Office2010.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Security.ActiveDirectory.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Security.ActiveDirectory.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Media.ImageLib.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Media.ImageLib.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Stocktake.Win32.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Stocktake.Win32.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Reporting.Omega.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Reporting.Omega.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Aqua.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Aqua.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Data.Linq.PlatformCore.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Data.Linq.PlatformCore.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Pi.QRCode.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Pi.QRCode.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Logic.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Logic.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: TelerikData.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: TelerikData.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Docking.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Docking.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Syspro.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Syspro.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Devices.Configuration.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Devices.Configuration.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.SAS.Win32Client.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.SAS.Win32Client.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.BreezeExtended.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.BreezeExtended.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Data.Linq.ContactTracker.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Data.Linq.ContactTracker.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Launchpad.exe.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Launchpad.exe
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.UI.Windows.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.UI.Windows.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Windows7.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Windows7.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Vista.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Vista.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: TelerikExtensions.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: TelerikExtensions.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Office2007Black.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Office2007Black.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Data.Linq.PlatformInterop.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Data.Linq.PlatformInterop.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.GridView.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.GridView.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Scheduler.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Scheduler.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Office2007Silver.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Office2007Silver.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.SAS.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.SAS.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Interop.XE.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Interop.XE.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.RadDock.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.RadDock.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Sigma.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Sigma.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Pi.AdminApp.exe.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Pi.AdminApp.exe
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Data.Linq.Syspro.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Data.Linq.Syspro.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Devices.BarcodeScanner.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Devices.BarcodeScanner.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Breeze.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Breeze.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: TelerikCommon.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: TelerikCommon.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Data.Serialization.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Data.Serialization.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.UI.HTML.Editor.Win32.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.UI.HTML.Editor.Win32.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Data.Linq.Epiconsole.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Data.Linq.Epiconsole.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.Reporting.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.Reporting.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.ReportViewer.WinForms.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.ReportViewer.WinForms.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Omega.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Omega.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.Desert.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.Desert.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Microsoft.mshtml.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Microsoft.mshtml.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Assist.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Assist.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Syspro.Win32.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Syspro.Win32.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Data.Linq.PlatformApps.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Data.Linq.PlatformApps.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Telerik.WinControls.Themes.ControlDefault.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Telerik.WinControls.Themes.ControlDefault.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Reporting.Win32.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Reporting.Win32.dll
  + System.Deployment.Internal.Isolation.StoreOperationStageComponent
   - Status: Installed
   - HRESULT: 0x0
   - Manifest: Platform.Apps.Sigma.Win32.dll.genman
  + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
   - Status: Installed
   - HRESULT: 0x0
   - File: Platform.Apps.Sigma.Win32.dll
  + System.Deployment.Internal.Isolation.StoreOperationPinDeployment
   - Status: Pinned
   - HRESULT: 0x0
   - AppId: http://es01/Framework/Platform%20Framework%20v1.0/Platform/Apps/Launchpad/Platform.Apps.Launchpad/publish/retail/Platform.Apps.Launchpad.application#Platform.Apps.Launchpad.application, Version=1.49.475.297, Culture=neutral, PublicKeyToken=4d0711b5f89c8549, processorArchitecture=x86
  + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
   - Status: Set
   - HRESULT: 0x0
  + System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
   - HRESULT: 0x0

 



Basically I have 10 hours to get this fixed before I am royally screwed and the next business day begins, any help would be fantastic.

I have already trolled and followed every google lead I could find for the 'Value does not fall within the expected range.' error, and had no luck.

Thanks,

Xavier.
Stefan
Telerik team
 answered on 20 Jul 2010
1 answer
133 views
Hi, I'm using the telerik Win Forms Trial version published on May 2010.
I want to replace them with the latest version of Telerik Win Forms Tools and I'm wondering if i will have any problem with functions of RadDataGridView and  RadComboBox?
Martin Vasilev
Telerik team
 answered on 20 Jul 2010
4 answers
242 views
I  have two problems occcurring in RadGriedView that has GriedViewComboboxCollumn as columns. Here there are:

1 . Creating Data: I set AutoGenerateColumns Property as false and I add two columns by a method (AddColumns) at runtime, each one column is a GridViewComboBoxColumn, defining their ValueMember = ID and DisplayMember = Name, then set datasource of first column, the second column datasource is set based on the select value of the first column. The second column datasource shows the items correctly, but when I select one item of combobox the grid display the ValueMember not the DisplayMember. Why ?


2. After creating Data (even not displaying the correct value), I save the datasource of grid in a IList and clean the gridview. Then I load this IList again in gridview, when I try to edit the value of the second column, the VS shows the message in the picture errortelerik.jpg. Thus, I cannot edit the row or add new row in the gridview.
How Can I handle this error? I already add the radGridView1_DataError event, but not solve the problem, I still not be able to edit the grid.



The code is here. What am I doing wrong?
namespace Example
{
    public partial class Form1 : Form
    {
        IList machineList = new ArrayList();
        IList SlotList1 = new ArrayList();
        IList SlotList2 = new ArrayList();
 
        IList datasource1 = null;
 
        public Form1()
        {
            InitializeComponent();
             
            this.radGridView1.MasterGridViewTemplate.AllowCellContextMenu = false;
            this.radGridView1.MasterGridViewTemplate.AllowColumnChooser = false;
            this.radGridView1.MasterGridViewTemplate.AllowColumnReorder = false;
            this.radGridView1.MasterGridViewTemplate.AllowDragToGroup = false;
            this.radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false;
            this.radGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
            this.radGridView1.MasterGridViewTemplate.EnableGrouping = false;
            this.radGridView1.MasterGridViewTemplate.EnableSorting = false;
            this.radGridView1.MasterGridViewTemplate.ShowFilteringRow = false;
            this.radGridView1.ShowGroupPanel = false;
            this.radGridView1.ShowNoDataText = false;
             
            VO.Machine m1 = new VO.Machine();
            m1.IdMachine = 1;
            m1.MachineName = "Machine1";
 
            VO.Machine m2 = new VO.Machine();
            m2.IdMachine = 2;
            m2.MachineName = "Machine2";
 
            machineList.Add(m1);
            machineList.Add(m2);
 
            VO.Slot s1 = new VO.Slot();
            s1.IdMachineSlot = 1;
            s1.SlotName = "Slot1";
 
            VO.Slot s2 = new VO.Slot();
            s2.IdMachineSlot = 3;
            s2.SlotName = "Slot3";
 
            SlotList1.Add(s1);
            SlotList1.Add(s2);
 
            VO.Slot s3 = new VO.Slot();
            s3.IdMachineSlot = 2;
            s3.SlotName = "Slot2";
 
            VO.Slot s4 = new VO.Slot();
            s4.IdMachineSlot = 4;
            s4.SlotName = "Slot4";
 
            SlotList2.Add(s3);
            SlotList2.Add(s4);
        }
 
        private void clearForm()
        {         
            radGridView1.DataSource = null;
            radGridView1.Columns.Clear();
        }
 
        protected void AddColumns()
        {
            GridViewComboBoxColumn maquinaColumn = new GridViewComboBoxColumn("colMaquina");
            maquinaColumn.HeaderText = "Machine";
            maquinaColumn.ValueMember = "IdMachine";           
            maquinaColumn.DisplayMember = "MachineName";
            maquinaColumn.FieldName = "IdMachine";
             
            GridViewComboBoxColumn posicaoColumn = new GridViewComboBoxColumn("colPosicao");
            posicaoColumn.HeaderText = "Slot";
            posicaoColumn.FieldName = "SlotName";
            posicaoColumn.ValueMember = "IdMachineSlot";
            posicaoColumn.DisplayMember = "SlotName";
 
            radGridView1.Columns.Add(maquinaColumn);
            radGridView1.Columns.Add(posicaoColumn);
        }
 
        protected void FillColumns()
        {
            AddColumns();
 
            ((GridViewComboBoxColumn)this.radGridView1.Columns[0]).DataSource = machineList;
        }
 
        protected void saveDataSource()
        {
            datasource1= new ArrayList();
 
            for (int i = 0; i < radGridView1.RowCount; i++)
            {
                VO.MachineSlot ms = new VO.MachineSlot();               
                ms.IdMachine = int.Parse(radGridView1.Rows[i].Cells[0].Value.ToString());
                ms.MachineName = "Machine" + ms.IdMachine.ToString();               
                ms.IdMachineSlot = int.Parse(radGridView1.Rows[i].Cells[1].Value.ToString());
                ms.SlotName = "Slot" + ms.IdMachineSlot.ToString();
                datasource1.Add(ms);
            }
            MessageBox.Show("DataSource1 Saved");
        }
 
        private void doAction(int action)
        {
            switch (action)
            {
                case 0: // Build a new datasource
                    clearForm();                                           
                    datasource1 = null;
                    FillColumns();
                    break;
                case 1:
                    saveDataSource(); // Save datasource of radgridview
                    clearForm();
                    break;
                case 2:
                    clearForm();
                    radGridView1.DataSource = datasource1;
                    FillColumns();
                    break;
            }
        }
 
        private void radButton1_Click(object sender, EventArgs e)
        {
            doAction(0);
        }
 
        private void radButton3_Click(object sender, EventArgs e)
        {
            doAction(1);
        }
 
        private void radButton2_Click(object sender, EventArgs e)
        {
            doAction(2);
        }
 
        private void onCellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            if (e.Column.HeaderText == "Slot")
            {
                if (this.radGridView1.CurrentRow.Cells["IdMachine"].Value != DBNull.Value
                    && this.radGridView1.CurrentRow.Cells["IdMachine"].Value != null)
                {
                    RadComboBoxEditor editor = (RadComboBoxEditor)this.radGridView1.ActiveEditor;
                    RadComboBoxEditorElement editorElement = (RadComboBoxEditorElement)editor.EditorElement;
 
                    if (this.radGridView1.CurrentRow.Cells["IdMachine"].Value.ToString().Equals("1"))
                    {
                        editorElement.DataSource = SlotList1;
                    }
                    else
                        editorElement.DataSource = SlotList2;
 
                    editorElement.SelectedValue = null;
                    editorElement.SelectedValue =this.radGridView1.CurrentCell.Value;
                }
            }
        }
    }
}
 
namespace VO
{
    public class Machine
    {
        private int _id_maquina;
        private string _cd_maquina;
 
        public Machine()
        {
        }
 
        public int IdMachine
        {
            get { return _id_maquina; }
            set { _id_maquina = value; }
        }
        public string MachineName
        {
            get { return _cd_maquina; }
            set { _cd_maquina = value; }
        }
    }
 
    public class Slot
    {
        private int _idMachineSlot;
        private string _cdSlot;
 
        public Slot()
        {
        }
 
        public int IdMachineSlot
        {
            get { return _idMachineSlot; }
            set { _idMachineSlot = value; }
        }
        public string SlotName
        {
            get { return _cdSlot; }
            set { _cdSlot = value; }
        }
    }
 
    public class MachineSlot
    {
        private int _id_maquina;
        private string _cd_maquina;
        private int _idMachineSlot;
        private string _cdSlot;
 
        public MachineSlot()
        {
        }
        public int IdMachine
        {
            get { return _id_maquina; }
            set { _id_maquina = value; }
        }
        public string MachineName
        {
            get { return _cd_maquina; }
            set { _cd_maquina = value; }
        }
        public int IdMachineSlot
        {
            get { return _idMachineSlot; }
            set { _idMachineSlot = value; }
        }
        public string SlotName
        {
            get { return _cdSlot; }
            set { _cdSlot = value; }
        }
    }
}

Thanks.

Daniel
Top achievements
Rank 1
 answered on 20 Jul 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?