|
I am using an unbound DataGridView for some numerical data. I want to allow row selection for deletion as well as column selection for deletion. However, the relevant SelectionMode settings do not allow this, nor do they accept ANDing of the enumerated values. Has anyone addressed this situation?
Enumerated values of the SelectionMode
CellSelect One or more individual cells can be selected.
ColumnHeaderSelect The column will be selected by clicking in the column's header cell. An individual cell can be selected by clicking that cell.
FullColumnSelect The entire column will be selected by clicking the column's header or a cell contained in that column.
FullRowSelect The entire row will be selected by clicking its row's header or a cell contained in that row.
RowHeaderSelectThe row will be selected by clicking in the row's header cell. An individual cell can be selected by clicking that cell.
|
|
|
|
|
The DGV doesn't support multiple selection like you're describing. I've never seen an application, using the DGV, that does.
If it's unbound and just numeric data, I HAVE seen a library that does Excel emulation, which does support multiple row and column selections. I just can't remember what it's called...
|
|
|
|
|
Thanks. I was afraid of that, but I needed to check. I'll look for the library and make do in the meantime.
|
|
|
|
|
Can you set it to CellSelect and enable MultiSelect and then handle selecting all the cells you want programatically?
|
|
|
|
|
I need to let the user make the choice.
|
|
|
|
|
Hi,
I am using visual studio2005 and .NET framework2.0
when ever I am trying to run my ASP.NET application I'm getting "Unable to find a version of the runtime to run this Application" error message. After clicking OK button of this message , I'm getting another message stating "Unable to connect Visual Studio's Local Host Server".
If I repair / reinstall the VS2005 , the error disappears for sometime , but again it reappears.
Can any one help me out from this.
Thanks,
Amu
|
|
|
|
|
Remove .NET framework2.0 from your Add/Remove programs in control panel and reinstall it.
|
|
|
|
|
Hi Ravi,
Thanks for reply , but from last 4 days I am uninstalling and installing my .NET frame work this error is appearing after some time, I am really frustrated coz of this , any other suggestion ,
Thanks,
Amu OMG
|
|
|
|
|
Hi,
I have a few questions about caching and how to immediately reflect database changes in the asp.menu control. Currently I'm using a custom sitemapprovider and binding my menu to the sitemapdatasource. When I make a change to one of the menu items whether it be to the menu items title or sortorder it doesn't get reflected in the menu control immediately. Moreover, I have no idea when it will be reflected as I have lost patience in waiting!
So my questions are:
1) How long does it take to get reflected in the menu control?
2) How do I make the menu control refresh immediately?
thanks,
Tim
|
|
|
|
|
You can use update panel from ajax control toolkit and poot your menu in that update panel and set refresh time whatever you want........
thanks
|
|
|
|
|
Hi All,
I want to copy attachments from outlook 2007 to a list view in VB.net 2.0
I want to right click on the File In outlook and choose Copy or Cut and then paste the selected file or Files into a vb.net List view.
Can anyone provide me some help please.
Best Regards
Tom
|
|
|
|
|
|
Thanks but I need a fast solution if possible, it will take some time to investigate everything on the mentioned website.
Regards
|
|
|
|
|
Life is hard
|
|
|
|
|
Sadly but true , I'm started with learning
|
|
|
|
|
Sorry I didn't realize it was urgent. In that case go here[^]
Otherwise, suck it up and realize nothing in life comes without effort.
only two letters away from being an asset
|
|
|
|
|
Thanks but I'd rather learn something then and do my own coding even when urgent.
|
|
|
|
|
You are not going to get anyone here to write your code for you. You've been given the tools to do your own research. Research is the TOP skill a developer needs in order to be successful at this job. It has nothing to do with knowing the language or the .NET Framework inside out. Without the ability to teach yourself what you need to know when you need to know it, you're completly screwed as a developer.
The longer you screw around on the forums hoping someone will just give the answer, the longer it'll take for you to learn about how to write it yourself.
|
|
|
|
|
I agree with the philosophy but could you explain me then why you have already posted more then 20 000 messages in the forums if you think that I screw around in the forums if I ask for explanation.
I find a forum a fast alternative to get information instead of doing lot of research. There isn't alway a lot of time to perform research if you have deadlines you know.
By The way I don't have problems to give code snippets to a person to give them a start. But I certainly agree that performing research is the best way to become a top developer.
Kind Regard
|
|
|
|
|
bluepoison wrote: if you think that I screw around in the forums if I ask for explanation.
Reread some of the previous suggestions you have been given. The first response to your enquiry was a link (given by Mark) to the Visual Studio Tools for Office web page. It is up to you to use these tools for your research and design and code your application. When you have a specific problem with some aspect of your application then come back and ask for help.
bluepoison wrote: There isn't alway a lot of time to perform research if you have deadlines you know.
Quite frankly that is your problem and not anyone else's; it is not urgent to us, as we have our own deadlines. You cannot expect the other contributors here to do your work for you. Firstly, they don't have the time - they are most likely engaged in their own research, and secondly the only way for you to succeed in this, or any other, business is through your own endeavours.
|
|
|
|
|
bluepoison wrote: I find a forum a fast alternative to get information instead of doing lot of research.
This is where you're short-changing yourself. By constantly asking a lot of questions, you're actually missing out on learning other things while you research your topic. Also, if your research skills are up to the task, asking a question in a forum is not faster than doing the research. For example, a week ago, I needed to get all the exported function names from any specified .DLL. Knowing nothing about the Win32 PE executable format, I started digging by launching Google. 2 days later, and a ton of research, I can almost read a PE file by hand, byte-by-byte. I'm still working on the library to do it for me, but my question was answered in 2 days and I've also learned about all kinds of little things that go on inside a PE file that make my debugging life a bit easier and well as some pitfalls in reading and parsing the file. It's just not possible to get an answer describing the format for PE files in a couple of forum posts and it's not possible to get all the tiny details you need to know to parse one and understand it.
bluepoison wrote: There isn't alway a lot of time to perform research if you have deadlines you know.
Then there isn't time to do the project properly and where you have to push back on a deadline.
|
|
|
|
|
bluepoison wrote: There isn't alway a lot of time to perform research if you have deadlines you know.
A very poor excuse that essentially means the project has already failed.
Never enough time to do right but always enough time to do it over.
only two letters away from being an asset
|
|
|
|
|
Hi All,
I have the application whose runtime argument will decides how many threads I have to create.All these threads functionality may differ by a step or two.Threads are going to use the same set of resources (Database tables,variables) etc.
To improve the application performance I planned to use multithreading.But I am a bit abash while thinking about .. since in my application the thread should continue processing in spite of any error in another thread. The sucessful run of all the above threads end up with the creation of file having consolidated data.
Can anybody help me on how to implement this scenario? Please reply.
Thanks!
|
|
|
|
|
You haven't really given enough details about the problem or any reason why you're using threading and how many threads you plan on using.
Keep in mind that every thread you start allocates at least 1MB of memory. So, if you think you're going to go start 250 threads, you just flushed 250MB of memory down the toilet. Starting a thread is a very expensive operation, so you don't want to just throw them around. You have to to some planning and keep the number of threads down to a minimum.
Remember, just because a machine can have hundreds of threads running at the same time, on a single core machine, only one of them runs at any given time. On a quad-core machine, four threads run at the same time. So, starting all kinds of threads is really just not that good of an idea.
Threading gives the illusion of greater performance, not the actual performance gain.
|
|
|
|
|
i have a simple application developed on .net 2.0. the client machine is a vista one and it has .net 3.5 , when i run the application on it gives a message saying windows is closing this program .when i try to install .net 2.0 it says it is already installed as a part of the os, but in the add/remove page it shows only .net 3.5 , what might be the problem .
|
|
|
|