I need to drag out a cell from a datagridview to desktop, once that happens, I need to find out the directory in where it was dragged into and in which row the cell was. How can I do this? Thanks!
There is a codeproject article designed for a different purpose but it implements the drag feature in a datagrid view. So, I suggest that you check it out. Here 's the link.
Related
Currently, I am using an Infragistics UltraGrid in Windows Forms application. I have columns generated in the grid dynamically. I have nearly 20 columns inside the grid and therefore also has a horizontal scroll bar in the grid. I have all my columns in disabled state (read-only) except the last one.
But now the problem is, whenever I open the application, the grid is loaded with the scroll bar on the extreme right side to show the active column. But I want the scroll bar to be on left side so always the first column of the grid is visible. I could not find any scroll bar position related properties in the grid. I also tried seeing some scrollbar related events but nothing worked. Do anyone have any idea what can be done. I have also posted this question in Infragistics forum and waiting for answer. Could you please help me to get around this problem?
I am also unable to understand what code sample is to be posted. I dont think of any helpful code extract for this problem.
I try to reproduce your issue using our latest available version - 13.2.20132.2010, but without success. The grid show the first column. Could you please tell me what is your current version. Are you able to upload small sample that reproduce this issue. I`ll be glad to research it for you.
Are you using Save/Load layout methods of your grid, because this is one possible reason for this behavior or maybe somewhere into your code you call Scroll methods.
Let me know if you have any questions.
I want to draw a custom table to be a way similar to this one in the picture
I have tried the TableLayoutPanel but i can't get something similar to this one, So your help would be very appreciated and thanks in advance.
You can create an RDLC report and use the Table Control in that, that is really customizable to the extent you need.
Perhaps you'd be considering to populate the table with some data, I am pretty sure RDLC will come in handy for that cause.
You can go thru this link on how to work with it:
http://msdn.microsoft.com/en-us/library/ms252067%28v=vs.80%29.aspx
You can still use a TableLayoutPanel and change the ColumnSpan of the controls inside the panel.
Check this tutorial
I have two ListBox in WPF application. One is the source second is the destination. I took the help from the article http://dotnetslackers.com/ADO_NET/re-191632_Generic_WPF_Drag_and_Drop_Adorner.aspx
Now I have managed to perform the drag and drop.
Now I have one feature to implement in which if we drop any item over an existing one, it will replace the existing item with the current dragged item.
Please guide.
You may want to look at Gong Solutions Drag/Drop for WPF, the guide it uses an adorner and should be able to show you how to remove the old item and add a new one, as #kenny suggested.
I got the requirement to implement this excel-like feature in the existing xamDataGrid in the application. For those who don't know what it is, they want to drag a cell (using rclick) and by doing so copy original cell value across the selected cells. Before I start digging in the code, maybe I can save myself some trouble.
Is the feature maybe available "out-of-the-box" for xamDataGrid? I couldn't find anything in docs or the web, but maybe I searched wrong.
If not, any recommendation on how this would be doable by custom code.
I am still rather new to xamDataGrid object model and requirement is rather urgent.
Drag fill behavior for the XamDataGrid would be a feature request as it isn't built into the control. For this you should reach out to Infragistics through either the forums or a support case. You can find links to each from the get help page:
http://www.infragistics.com/support/get-help.aspx
I'm trying selecting multiple check edit boxes when added as a repository item in a grid control, but at the moment it only allows me to select one at a time. So far I've seen that one need to unbound the checkedit's. But I don't know how to do this.
Does anyone have good examples or links of how I can get this working.
Because what I need to do is select certain option in the beginning of a process and then late display the exact same selections but still with the unselected ones
Thanks
The functionality you are asking about is the default one for XtraGrid, DXGrid (WPF). I believe that you are using XtraGrid and do not understand the problem you ran into. Everything should work properly and should not require additional adjustments. Could you please explain the problem in greater details. If the XtraGrid does not allow the end-user to edit its data, we need to know which DataSource you are using.