Ananda Ganesh's Q&A profile
Visual Studio 2008 (Pre-release) listview/gridview binding question
how do I bind, say a datatable to gridview when columns in the datatable are not known at desgin time. I tried to loop through all the columns in the datatable in code and dynamically create the gridview, but it always displays the values from the first row only, for all the items Yes, you would have to build the columns dynamically as you say. It just sounds like your bindings aren't being created correctly. Can you share your logic for bu ...Show All
Microsoft ISV Community Center Forums how to add CheckBox?
i want to add several CheckBox into Form. the numbers of checkBox is depends on the user input. i had already data on the ExcelSheet that represent one table of selected database. then the entire column name will be listed in userForm. i need to know how to add checkBox into the userForm (in uncertain range, depends on how many column in the table) and of course including the label beside it. This code is ...Show All
SQL Server does "with (nolock)" absolutely guarantee no locks are taken?
I need to run a few short-running queries against a production system. I need to be absolutely certain that SS doesn't take out any locks on the table as a result. Does "with (nolock)" absolutely guarantee this I've read BOL on the topic and I understand isolation level read-uncommitted. But I want to validate that there's not any undocumented behavior in SS that might violate the documentation (which clearly states that no sha ...Show All
Visual C++ Error C2664 in atlcom.h
Hi all, I have recently moved from visual studio .net 2003 to 2005 team. I am trying to compile a project that works fine in 2003, but am getting a c2664 error in atlcom.h The Error is: C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlcom.h(5114) : error C2664: '_CopyMapItem<IQueryAssociations>::copy' : cannot convert parameter 2 from 'const std::pair<_Ty1,_Ty2> *' to 'std::pair<_Ty1,_Ty2> *' Clicking on th ...Show All
Software Development for Windows Vista Workflow becomes idle after CallExternalMethodActivity.
I have a workflow executed from an .aspx page. The workflow looks like this: handleExternalEventActivity1 callExternalMethodActivity1 codeActivity1 (never invoked) handleExternalEventActivity2 I would expect the first three activities to be executed, before the workflow instance become idle on the fourth activity (eventSink). However, the callMethod activity is triggered and it invokes the service method as expected, ...Show All
Visual C# Generics Question
Hi there, Suppose I have the following class: public class CacheItem<T> { public T Data { get { ... } } public bool IsExpired { get { ... } } //other properties } How would I go about iterating over a collection of cache items where T could be different for each cache item In other words, how do I get this to work: foreach (CacheItem< > cacheItem in Cache.Items) { if (cacheItem.IsExpired) { ... } ...Show All
Windows Forms Windows Forms 2.0 Slow - MDI Application + TabPage+ Datagridview
Hello! I’m creating a windows forms MDI application and having problems with performance: Problem: I created a MDI child form with a tabcontrol.The tabControl have 2 tabpages.The first contain 3 group boxes and the total of 50 controls (textbox,combobox,lists and buttons).The second have a label and a datagrid view. Running the application , i noticed the form drawing(rendering ,flicker ) ,and when i switch between tabpages again the drawing. ...Show All
SQL Server Using CC and BCC in Notification Services
I'm trying to set CC (CarbonCoby) and BCC properties of an email notification. The SMTP protocol element of my ADF looks like this: <Protocol > < ProtocolName > SMTP </ ProtocolName > < Fields > < Field > < FieldName > Subject </ FieldName > < SqlExpression > SubjectText </ SqlExpression > </ Field > < Field > < FieldName > From </ FieldName > ...Show All
Visual Studio Express Editions syntax highlighting
Hi How do you make a rich text control highlight/change colour of certain words and phrases automatically for you Thanks Any easy ways of doing that Also... SaveFile only saves as .rtf, how do I do it as a .txt file instead rtb.lines.insert isn't like delphi's textbox.lines.add and crashes most of the time if the line isn't available yet - how would I overcome this ...Show All
Visual Studio 2008 (Pre-release) Automation API and WPF
Has anyone managed to get this working I can get the automation api's to work with winforms but not WPF, any gudience, best pratices welcome. Could you be more specific about what your are trying to get working Are you using an Automation client (like a screen reader) ...Show All
Visual Basic Purchase Order Number Generator
I'm designing the forms for our business, and am currently working on a Purchase Order form. The aim is to create a form that, when opened, creates a new PO number that runs in sequence. IE: I open it one time and I have GH-0001, but next time it's opened, we have GH-0002. I'd like to avoid anything based on date and time because those make for very long PO Numbers, and slightly weird. Any suggestions or redirections are welcome. ...Show All
Visual Studio Team System Branch or second workspace?
I have a simple problem I'm trying to solve, but I'm hung up on the workflow best practices with TFS version control. I'm accustomed to using copy project to move applications from my machine up to a web server. Now with things stored in the repository it's unclear the best way to move them (promote them) through the rest of the life-cycle. Suppose I have a new team project....I've added my solution everything works fine. I checkout some files, ...Show All
Visual Studio Express Editions registration of express products
Could anyone describe procedure of registration of express products in case when i don't have link to internet from computer where express product is installed. I downloaded VC# Express today at my faculty, but at home I don't have internet access Thanks Dragan I think it'sn't possible. Becouse the code is generated also with some infos of your installation and of your user's account... But I'm not so sure about that... That is what I lea ...Show All
Windows Forms Drow combobox-like control list area over all controls
Sorry for my bad English... I have created user control that act like combobox , it contains a TextBox , a List, And a Botton . When I click the button, the list should appear, but if the control near the form buttom , the list does&n ...Show All
Visual Basic A more efficient Loop
Hello again! This time I came across a situation where I had to write a loop for a part of the program I have 10 numericupdown boxes Each one is different from each other set from 1 to 10 value I want to be able to set a different value for each box (between 1 and 10) and have it check to see if any of the numericupdown boxes have a matching or duplicate number selected in it. I wrote a loop that works, but I feel its not an e ...Show All
