Answer Questions
yass1400 How to set DataGridViewComboBoxColumn to display nothing ?
Hi all, I would like to display nothing when the user chooses the first option of the combobox. In Visual Basic 6.0 I would use something like that : DataGridViewComboBoxColumn.SelectedIndex = -1 I use the newest VS 2005 (no beta). Thanks ! Best regards, Joao Araujo Mark Rideout wrote: One other way, the DataGridView supports the Ctrl+0 keystroke to enter a null value into a cell ...Show All
Pete Runcorn Casting EventArgs object to KeyEventArgs - is it possible?
Hi all , I am receiving a casting error message when I try to perform the following code... private void txtSnagDetailsActionBy_GotFocus(object sender, System.EventArgs e) { KeyEventArgs ke = (KeyEventArgs)e; } Is this type of casting not possible Tryst Hi Tryst, Thanks for contacting Microsoft! The casting from parent class to child class can make sense if the instance of parent class is also that of the child class. Si ...Show All
bozworthy how can i select all checkboxes by clicking a button or checking another checkbox
hi, i hv this DGV with checkboxcolumn inside it. How can i check(select) all the rows by just clicking a button or checking a checkbox. tq. it's not working man...when set .selected = true, instead of checking all checkboxes, it will select all rows but not the checkboxes. 2nd prob: how to uncheck those checkboxes that have been ticked after a button click event. Similar to uncheck all checkboxes. ...Show All
John961 Problem with treeView - Object not set an instance to an object...
I always have a problem when working with treeview. I have a treeview that looks like this: Root name - First node - First's node child1 - First's node child2 - Second node - Second's node child1 - Third node When I click on treeview this is code that is in treeView1_AfterSelect event private void treeView1_AfterSelect( object sender, System.Windows.Forms.TreeViewEventArgs e) { TreeNode tn = treeView1.SelectedNode; if ...Show All
Hoppe SendKeys in DataGridView.
Dear all, I have some ComboBox column in DataGridView. In order to user-friendly, when user focus in ComboBoxCell they drop down automatically, so i use SendKeys.send method. This is my code : private void grdStandardNotes_CellEnter( object sender, DataGridViewCellEventArgs e) { if (grdStandardNotes.Columns[e.ColumnIndex].Name == "CityID" ) SendKeys .Send( "%{DOWN}" ); } However, it do nothing. Please help me to fix ...Show All
Joey Lee Ackumulating data from multiple DataSets to a DataGridView
I am new to VB.NET and ADO.Net and need some advice. Is it possible to ackumulate data from multiple DataSets to a single DataGridView My application spawns multiple DataSets, each beeing the DataSource for a single, unique DataGridView. All DataSets have 4 fields with similar data (not the same data, though). I would like to collect these data to a single DataSet that I can make the DataSource for a new DataGridView. Is it possible and how ...Show All
Rana Basu Debug Error. Species by same name already exists?
I get an error that the species with the same name already exists... what is with that error Thanks, Brian Reinhart Brian@pointblanc.net If you're using VS .NET you can have it do that every time you compile by right-clicking on the  ...Show All
Jubin Iterating DesignerSerializationVisibility.Content collections?
Running the following code to get the property descriptor of ToolStripContainer.ContentPanel results in a descriptor marked with DesignerSerializationVisibility.Content. ToolStripContainer tsc = new ToolStripContainer (); PropertyDescriptorCollection props = TypeDescriptor .GetProperties(tsc); PropertyDescriptor prop = props[ "ContentPanel" ]; Up until now, I've been using IEnumerable to iterate over objects which are marked Designe ...Show All
TimK74 Object reference not set as instance of an object design
I have a form inherited from a base form defined by me, the form I see with any problem in design but when I try to add controls resize the form it's give me the error "Object reference not set as instance of an object". Can you run another instance of VS, turn off "Just My Code" in Tools->Options->Debugging. Then attach to your first instance of VS and turn on exception catching by ...Show All
KateCooper datagridview
I have to convert a existing app to 2005 for a demo and i'm stuck the current app is using a grid and displaying the data like I need to in the .NET world. How can i get my data in my datagridview to go accross instead of&n ...Show All
MotoMan To Long for startup the Application
Hello people, I have troubles when I create a empty Windows Form Application in C# and I start this after a reboot the first time. It takes nearly 30 seconds til the Windows Form is shown. The second time the Windows Form is shown directly. Now my question is what can I do against the 30 seconds the first time. It would be help ful when I could show a splashform during this time or anything else so that the user gets a short reaction. Further ...Show All
Víctor M. Record Begin Edit Event
I want to enable a "Cancel Update/Add" button and Save button when a user makes any change to a record. Is there anyway to know when a user begins editing a record besides TextChanged and similiar events I have tried the RowChanged/ing of the Datatable and other events with no luck. Thanks Simmy Like I wrote in my "answer" post. Set the froms keypreview property to true. Then in the forms K ...Show All
masontwo Name Property
Hi I have a custom control that is inherited from System.Windows.Forms.Control. I want to do some custom processing when the Name of the control is set. But inside the constructor,a reference to the Name yields a blank value i.e. "". Can u tel ...Show All
Alcor38370 Accessing controls in external windows
How do you access controls in a window that have been created by another program I have got the window handle, and want a list of all controls in the external window. I am newbee to .NET, programming in C#. very thankful for help! Given a handle, you typically can call Control.FromHandle to retrieve the Control. However this only works if you're on the same thread as the control. Since you are cross-process, this w ...Show All
Meaning Of Lights creating alias for functionname
Hi, Is it possible to create an alias for object.function I have this code DSMarketDisplay.Tables[sTableName].Rows[hti.Row][ "date1" ] = oArgs.Date1; DSMarketDisplay.Tables[sTableName].Rows[hti.Row][ "CMonth" ] = oArgs.CMonth; and the list goes on, what I dont want to do here is repeat this DSMarketDisplay.Tables[sTableName] in all lines. Can I just create an alias or something to remove the redundancy ...Show All
