The error message usually means that one of the objects has not been created. This could be due to the column not existing or rows not being selected. Are you checking that SelectedRows.Count is greater than 0? If there are no explicitly selected rows then this could be the problem.
Cassandra Ross
Posts
-
Collecting values from datagridview.selectedrows[0].cells -
Getting ToolStrip button's CheckState to reflect RichTextBox contentIn the SelectionChanged event you will need to analyze the selection alignment and set the Checked property of the left/right/centered buttons to suit. This is because the SelectionAlignment property can be more than just true or false (boolean), where the checked property is a boolean.
-
Collecting values from datagridview.selectedrows[0].cellsHave you tried determining which part of the statement is null? Are you trying to just get the first selected row and are you sure there is a row selected?
-
Is there something out there that would allow to sing a song and...Are you looking for something like http://www.midomi.com/ I haven't used this myself but maybe it might work.
-
Screen RecorderA while ago I used Winstructor from flickerfree http://www.flickerfree.com/Ws.html [^] and it did what I think you want to do. I don't think it has changed much since then, so it may not work on WinXP or 2000. It definately captures the cursor movements.
-
Lord of the Ring goofs and gaffesEdbert P. wrote: It's gonna be out on Boxing Day in Australia. That's different, New Zealand's already has it open at the cinema's. That's unusual
-
USB PortI found this article link[^] really helpful when I was trying to access a Cypress USB device through C#. Please note that it uses managed and unmanaged C++ to do the communications (not exactly what you want I imagine). If anyone else has any other information on how to communicate directly using C# I would also be interested. Cass
-
Interview TomorrowOn the other hand if you've ever worked with someone who definately couldn't pass a personality test you may see the idea differently Cass