I would like to validate columns in an asp:Gridview but am unsure how to do so as all the tutorials I have found show a previous version on Microsoft Visual Studio (I am using 2010). How do I validate each column of the Gridview? Thanks This is the code of my Gridview generated by visual studio. <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="registrationNo" DataSourceID="SqlDataSource3" onselectedindexchanged="GridView2_SelectedIndexChanged"> <Columns> <asp:BoundField DataField="fullName" HeaderText="fullName" SortExpression="fullName" /> <asp:BoundField DataField="address" HeaderText="address" SortExpression="address" /> <asp:BoundField DataField="work" HeaderText="work" SortExpression="work" /> <asp:BoundField DataField="home" HeaderText="home" SortExpression="home" /> <asp:BoundField DataField="mobile" HeaderText="mobile" SortExpression="mobile" /> <asp:BoundField DataField="registrationNo" HeaderText="registrationNo" InsertVisible="False" ReadOnly="True" SortExpression="registrationNo" /> <asp:ButtonField ButtonType="Button" CommandName="Edit" HeaderText="Edit" …

Member Avatar
Member Avatar
+0 forum 3

Hi all, How can I make the items in a standard values collection identical to the items contained in a previously defined (dynamic) array of strings? Here's a snippet; [CODE] Public Class ElementList : Inherits StringConverter Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As ITypeDescriptorContext) As Boolean Return True End Function Public Overloads Overrides Function GetStandardValues(ByVal context As ITypeDescriptorContext) As StandardValuesCollection Return New StandardValuesCollection(New String() {elList}) End Function Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As ITypeDescriptorContext) As Boolean Return True End Function End Class [/CODE] Here, elList is my shared array of strings, which has contents depending on the items in …

Member Avatar
+0 forum 0

I have a dynamic form, which contains an empty listbox and a button at first. When the button is clicked, an item is added to the listbox and a new PropertyGrid is created associated with that item. What I want to be able to do is change the name of the item in the listbox depending on the user's input in one of the properties of the associated PropertyGrid. Here's a simplified version of my code to give an idea of what's going on; [CODE] Imports System.ComponentModel Public Class form1 'declare dictionary of PropertyGrids with a string key Public ctrlArray …

Member Avatar
+0 forum 0

I need help creating bootstapper for crystal reports runtime.. I want crystal reports runtime to be installed automatically with the application if its not installed on the target machine. I am using vs2010 anyone have any idea here ?

Member Avatar
Member Avatar
+0 forum 3

hello, my visual studio 2010 came with silverlight 3..now i have to use 3rd party components that require silverlight 4 above..so i installed silverlight 5 for developers..but when creating a silverlight application visual studio only shows silverlight version 3..could anyone help me please?? i get the following error in the designer view [code] System.NullReferenceException Object reference not set to an instance of an object. at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.<GetXmlNamespaceCompatibilityMappings>d__8.MoveNext() at MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption() at MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier) at MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context) at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem() at Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem() at Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState() at MS.Internal.Host.PersistenceSubsystem.Load() at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() …

Member Avatar
+0 forum 0

Hi, i really need help with this.. i am trying to create an application that will be able to recognize the sounds that the user has already recorded. and once the sounds are matched, it must alert the user. Any idea on how i can go about to start this? This is my major project and i have no idea on how to start :S what are the softwares that i would need other than visual studios? and if possible does anyone have any sample codes for reference. Please help.. Thank you in advance :)

Member Avatar
+0 forum 0

Hi all, it's me again. Currently I'm developing web-based information system using Microsoft Visual Studio 2010 Professional with VB language. I was doing fine with my work until several days ago. The web pages I've created work normally, but what makes me puzzled is that all user controls in the web page aren't populated in the General dropdownlist (upper left of the code behind window). It only populates the class name of the page.:?: Where actually is the setting menu for that dropdownlist? Here I attached a bit of printscreen of my problem. I will really appreciate your help. Thanks …

Member Avatar
Member Avatar
+0 forum 3

The form is supposed to be able to take your their percentage grade out of 100 and the number of hours per week of each of their courses. The application will determine and output the GPA equivalent of each grade entered as well as the CGPA of all the courses entered. The maximum number of courses any student would take is is 40. The user enters data the first time and presses calculate, GPA is updated, Quality Points is updated, Number of Courses adds 1, cumulative grade point is updated. When they enter another value and press calculate again these …

Member Avatar
Member Avatar
+0 forum 3

Hello, I would like to get message, or true result when DataSet get new record (new row). But, I always get message as "no". Button1 is add new record [CODE]Me.Table1BindingSource.AddNew() [/CODE] Button2 is save a record [CODE] Me.Validate() Me.Table1BindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.TestDataSet) [/CODE] Button3 should return "Yes" as new record has been added, but does not?! [CODE] If TestDataSet.HasChanges(DataRowState.Added) Then MsgBox("yes") Else MsgBox("no") End If [/CODE] Thank you in advance for help.

Member Avatar
Member Avatar
+0 forum 2

hi there, im a beginner really and have just tried to finish a new computer based booking system for my work, im using sql and a database to store the customers and then store bookings too, but im having problems with the customer form, when i run it it kind of works until i click commit changes, when it throws an error A first chance exception of type 'System.NullReferenceException' occurred in LM_NewWork.exe can you guys look at the code, and give suggestions to how to fix it and all to get it running, thanks, tell me where i have gone …

Member Avatar
Member Avatar
+0 forum 3

Hi, I have a C++ program (built in Visual Studio 2010) and want to add a user interface to package it up. I've been reading around about windows forms and the win32 API, and found loads of tutorials showing how to create interfaces but I can't find any advice on linking everything together. Basically, what I want to know is what is the best way (it may not be windows forms or win32) for me to create a GUI if I already have a working program in VS? and can anyone recommend a tutorial/reference that explains how to use a …

Member Avatar
Member Avatar
+0 forum 4

hi, please help me to create setup of my web project. i use visual studio 2010 and Mssql 2008. i have problem in create setup is - i can not create App_code. - framework problem in web config file. please help me to do that. thanks jack.

Member Avatar
+0 forum 0

Hi All, Hopefully someone has had this problem in the past and can point me in the right direction. In the last couple days the ASP.NET development server has slowed down to nearly a halt when starting and stopping debugging, by that I mean anywhere from 5-7 minutes before the initial page will load. The web pages load fine once the application is running. I checked task manager and the CPU is registering at around 25%. If I click on the Visual Studio window when the application is starting, I get the "(Not Responding)" message in the top. I checked …

Member Avatar
Member Avatar
+0 forum 1

Hi I have a base form that subsequent forms are inherited from. It is a form that is designed to have an appropriate look and feel and really doesn't do anything else. The other froms just inherit it as per: [CODE]public partial class frmLoad : frmPeakBase [/CODE] The only other thing that I have done on the frmPeakBase is the following: [CODE] public partial class frmPeakBase : Form { public PPCustomMessageBox.Question PQ = new PPCustomMessageBox.Question(); public frmPeakBase() { InitializeComponent(); } }[/CODE] Which just creates a reference to a custom message box. The problem that I am facing is that every …

Member Avatar
Member Avatar
+0 forum 3

I am using Visual Studio 2010 and C#. I am having problems making my three dice generate different random numbers. All of the dice roll at the same time. I have pictures of dice that I want to pull up for each of 3 dice according to what random number was generated. But when the pictures generate, it is the same picture (aka same number) for all 3 dice. I tried at first to make all three dice pull a random number from the same method, then I tried to make a separate random method for each dice (i.e., randomNum1(), …

Member Avatar
Member Avatar
+0 forum 2

i convert some opengl code from visual c++ 2006 to visual c++ 2010 i mean visual studio framework. problem is in visual studio 10 they r running but mainloop is not working, i mean windows r supposed to wait for key input but it shows and gone at instant. no error found. i m totally confused. is vs 2010 using special anything to run win32 app ?????????? plz help

Member Avatar
Member Avatar
+0 forum 2

The End.