Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
AnswerRe: socket programming in c# Pin
led mike16-Jun-08 8:08
led mike16-Jun-08 8:08 
Questionproblem with .aspx pages Pin
WebMaster16-Jun-08 7:04
WebMaster16-Jun-08 7:04 
AnswerRe: problem with .aspx pages Pin
eggsovereasy16-Jun-08 10:06
eggsovereasy16-Jun-08 10:06 
GeneralRe: problem with .aspx pages Pin
WebMaster16-Jun-08 21:55
WebMaster16-Jun-08 21:55 
AnswerRe: problem with .aspx pages Pin
Pete O'Hanlon16-Jun-08 10:27
mvePete O'Hanlon16-Jun-08 10:27 
QuestionDrag Drop from tree to data grid VS 2005 Pin
sam1287416-Jun-08 6:33
sam1287416-Jun-08 6:33 
AnswerRe: Drag Drop from tree to data grid VS 2005 Pin
led mike16-Jun-08 6:50
led mike16-Jun-08 6:50 
GeneralRe: Drag Drop from tree to data grid VS 2005 Pin
sam1287416-Jun-08 7:37
sam1287416-Jun-08 7:37 
This is the code snippet , This works well for tree drag n drop but now I have to do the same with tree and datagrid instead of tree and tree,If you are not understanding still please let me no Thanks

TreeDataID = treeViewdataitemID();
if (TreeDataID.Tables.Count > 0)
{
foreach (DataRow row in TreeDataID.Tables[0].Rows)
{
TreeNode newNode = new TreeNode();
newNode.Text = "[" + row["DataItemID"].ToString() + "]" + row["LocalDisplayname"].ToString();
this.treeDataItemIDView.Nodes.Add(newNode);
}
}

this.treetab3licgrpView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.treeView_ItemDrag);
this.treeDataItemIDView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.treeView_ItemDrag);
this.treetab3licgrpView.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView_DragEnter);
this.treeDataItemIDView.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView_DragEnter);
this.treetab3licgrpView.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeView_DragDrop);
this.treeDataItemIDView.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeView_DragDrop);



private void treeView_ItemDrag(object sender,System.Windows.Forms.ItemDragEventArgs e)
{
DoDragDrop(e.Item, DragDropEffects.Move);
}

private void treeView_DragEnter(object sender,System.Windows.Forms.DragEventArgs e)
{
e.Effect = DragDropEffects.Move;
}

private void treeView_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
{
TreeNode NewNode;

if (e.Data.GetDataPresent("System.Windows.Forms.TreeNode", false))
{
Point pt = ((TreeView)sender).PointToClient(new Point(e.X, e.Y));
TreeNode DestinationNode = ((TreeView)sender).GetNodeAt(pt);
NewNode = (TreeNode)e.Data.GetData("System.Windows.Forms.TreeNode");
if (DestinationNode.TreeView != NewNode.TreeView)
{
DestinationNode.Nodes.Add((TreeNode)NewNode.Clone());
DestinationNode.Expand();
//Remove Original Node
//NewNode.Remove();
}
}
}<pre></pre>
GeneralRe: Drag Drop from tree to data grid VS 2005 Pin
led mike16-Jun-08 8:09
led mike16-Jun-08 8:09 
GeneralRe: Drag Drop from tree to data grid VS 2005 Pin
sam1287417-Jun-08 5:11
sam1287417-Jun-08 5:11 
GeneralRe: Drag Drop from tree to data grid VS 2005 Pin
sam1287417-Jun-08 5:37
sam1287417-Jun-08 5:37 
GeneralRe: Drag Drop from tree to data grid VS 2005 Pin
led mike18-Jun-08 6:01
led mike18-Jun-08 6:01 
QuestionAuto Size the DataGridViewComboBoxColumn Drop Down to the contents? Pin
sgeorgij16-Jun-08 4:43
sgeorgij16-Jun-08 4:43 
AnswerRe: Auto Size the DataGridViewComboBoxColumn Drop Down to the contents? Pin
squattyarun16-Jun-08 7:10
squattyarun16-Jun-08 7:10 
GeneralRe: Auto Size the DataGridViewComboBoxColumn Drop Down to the contents? Pin
sgeorgij16-Jun-08 10:18
sgeorgij16-Jun-08 10:18 
QuestionRenaming Pin
ellllllllie16-Jun-08 4:38
ellllllllie16-Jun-08 4:38 
AnswerRe: Renaming Pin
netJP12L16-Jun-08 5:05
netJP12L16-Jun-08 5:05 
QuestionC# connects to Sybase IQ Pin
zecodela16-Jun-08 4:36
zecodela16-Jun-08 4:36 
QuestionConvert to int32 problem Pin
Newbie_Toy16-Jun-08 3:59
Newbie_Toy16-Jun-08 3:59 
AnswerRe: Convert to int32 problem Pin
Christian Graus16-Jun-08 4:01
protectorChristian Graus16-Jun-08 4:01 
AnswerRe: Convert to int32 problem Pin
Zoltan Balazs16-Jun-08 4:10
Zoltan Balazs16-Jun-08 4:10 
AnswerRe: Convert to int32 problem Pin
User 665816-Jun-08 4:30
User 665816-Jun-08 4:30 
JokeRe: Convert to int32 problem Pin
Guffa16-Jun-08 4:36
Guffa16-Jun-08 4:36 
GeneralRe: Convert to int32 problem Pin
Newbie_Toy16-Jun-08 5:04
Newbie_Toy16-Jun-08 5:04 
QuestionMap network drive from remote machine(server) to local machine Pin
chakran16-Jun-08 3:44
chakran16-Jun-08 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.