| public bool SetCurrentRow(DataRow r, string fieldname, object val) { if ((this.Columns.FindByDataField(fieldname) == null || r[fieldname] == null)) { string m = string.Format("{0} failed. Grid columns or row columns did not contain '" + fieldname + "'." , "SetCurrentGridRow"); throw new ApplicationException(m); } System.Diagnostics.Debug.WriteLine(""); System.Diagnostics.Debug.WriteLine("Looking for: "+ r[fieldname].ToString()); foreach (GridViewRowInfo v in this.Rows) { if (v.DataBoundItem is DataRowView) { if ((v.DataBoundItem as DataRowView).Row != null) { DataRow row = (v.DataBoundItem as DataRowView).Row; System.Diagnostics.Debug.WriteLine(row[fieldname]); if (row[fieldname].Equals(val)) { this.CurrentRow = v; this.GridElement.Update(false); return true; } } } } return false; } |
Download Telerik CAB Enabling Kit Beta 1
You can find more information on the Can Enabling Kit on our CAB Support page.
The beta of the Telerik CAB Enabling Kit includes the early bits of the upcoming Q2 2007 RadControls for WinForms suite. It comes with a Finance Application modeled after Microsoft's WPF WoodGrove Finance Application.
Since this is the first beta of the CAB Kit we expect some glitches, and your comments and opinions will be much appreciated. Feel free to post all ideas, suggestions and feedback in this Forum. The most active beta users will be awarded with up to 5,000 Telerik Points.
Resources
| One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. | |
|
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly() at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description) at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly) at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly& assembly, ReferenceType refType) at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType) at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.GetType(ITypeResolutionService trs, String name, Dictionary`2 names) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.FillStatementTable(IDesignerSerializationManager manager, IDictionary table, Dictionary`2 names, CodeStatementCollection statements, String className) at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) |
|
Dim
AuthCheck As New MySql.Data.MySqlClient.MySqlConnection(Conn)
Dim AuthGo As New MySql.Data.MySqlClient.MySqlCommand("Auth", AuthCheck)
AuthGo.CommandType = Data.CommandType.Text
Dim AuthGo2 As New MySql.Data.MySqlClient.MySqlCommand("Auth", AuthCheck)
AuthGo2.CommandType = Data.CommandType.Text
AuthGo.CommandText =
"SELECT recipe as Recipe, ingredients as Ingredients, id as ID FROM book"
AuthGo2.CommandText = "SELECT ingredients as Ingredients, id FROM book"
Dim AuthGoAdapter As New MySql.Data.MySqlClient.MySqlDataAdapter(AuthGo)
Dim DS As New Data.DataSet()
Dim DST As New Data.DataTable()
Dim DST2 As New Data.DataTable()
Dim AuthGoAdapter2 As New MySql.Data.MySqlClient.MySqlDataAdapter(AuthGo2)
AuthGoAdapter2.Fill(DS,
"DST2")
AuthGoAdapter.Fill(DS,
"DST")
DS.Relations.Add(
"DST6", DS.Tables("DST").Columns("id"), DS.Tables("DST2").Columns("id"))
rgv.DataSource = DS.Tables(
"DST")