Click here to Skip to main content
15,923,051 members
Home / Discussions / C#
   

C#

 
Questionstrange behaviour of console application Pin
stephan_00717-Jun-08 11:30
stephan_00717-Jun-08 11:30 
AnswerRe: strange behaviour of console application Pin
PIEBALDconsult17-Jun-08 13:15
mvePIEBALDconsult17-Jun-08 13:15 
QuestionProblem populating multiple Combo-boxes...........!!! Pin
Verghese17-Jun-08 10:38
Verghese17-Jun-08 10:38 
GeneralRe: Problem populating multiple Combo-boxes...........!!! Pin
User 665817-Jun-08 10:51
User 665817-Jun-08 10:51 
QuestionList of compiler warning levels with associated warnings Pin
Member 391904917-Jun-08 10:03
Member 391904917-Jun-08 10:03 
AnswerRe: List of compiler warning levels with associated warnings Pin
martin_hughes17-Jun-08 10:38
martin_hughes17-Jun-08 10:38 
GeneralRe: List of compiler warning levels with associated warnings Pin
Member 391904917-Jun-08 11:11
Member 391904917-Jun-08 11:11 
QuestionSelect multiple rows from datagrid and want to drop it into tree Pin
sam1287417-Jun-08 9:54
sam1287417-Jun-08 9:54 
I have to select multiple rows from datagrid and want to drop it into tree.Below code is working fine for selecting one row and adding it into tree but how to implement multiple selected rows ??? where can I apply a loop ???I am new to C#.

Thanks



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Tree DragDrop

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

private void treeView_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
{
if (e.Data.GetDataPresent("System.Data.DataRowView", false))

{
Point pt = ((TreeView)sender).PointToClient(new Point(e.X, e.Y));
TreeNode DestinationNode = ((TreeView)sender).GetNodeAt(pt);
DataRowView view = (DataRowView)e.Data.GetData("System.Data.DataRowView");

DestinationNode.Nodes.Add(new TreeNode(view.Row[0].ToString()));
DestinationNode.Expand();
}
}



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Datagrid DragDrop

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

void dgview1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
DataGridView.HitTestInfo info = dgview1.HitTest(e.X, e.Y);
if (info.RowIndex >= 0)
{
DataRowView view = (DataRowView)dgview1.Rows[info.RowIndex].DataBoundItem;
if (view != null)
dgview1.DoDragDrop(view, DragDropEffects.Copy);
}
}
}
QuestionPrinting a MonthCalendar Pin
Elvis_Pretzelator17-Jun-08 9:34
Elvis_Pretzelator17-Jun-08 9:34 
AnswerRe: Printing a MonthCalendar Pin
Thomas Stockwell18-Jun-08 16:05
professionalThomas Stockwell18-Jun-08 16:05 
GeneralRe: Printing a MonthCalendar Pin
Elvis_Pretzelator19-Jun-08 5:37
Elvis_Pretzelator19-Jun-08 5:37 
QuestionVC++ runtime version check Pin
ben217-Jun-08 9:29
ben217-Jun-08 9:29 
AnswerRe: VC++ runtime version check Pin
Judah Gabriel Himango17-Jun-08 10:01
sponsorJudah Gabriel Himango17-Jun-08 10:01 
QuestionHow to control VS2008 compiler warnings? Pin
Member 391904917-Jun-08 8:25
Member 391904917-Jun-08 8:25 
AnswerRe: How to control VS2008 compiler warnings? Pin
User 665817-Jun-08 8:31
User 665817-Jun-08 8:31 
AnswerRe: How to control VS2008 compiler warnings? Pin
carbon_golem17-Jun-08 8:31
carbon_golem17-Jun-08 8:31 
GeneralRe: How to control VS2008 compiler warnings? Pin
Member 391904917-Jun-08 9:25
Member 391904917-Jun-08 9:25 
GeneralRe: How to control VS2008 compiler warnings? Pin
carbon_golem18-Jun-08 2:27
carbon_golem18-Jun-08 2:27 
QuestionClickable Multiple Labels Pin
djnevs17-Jun-08 8:16
djnevs17-Jun-08 8:16 
AnswerRe: Clickable Multiple Labels Pin
Judah Gabriel Himango17-Jun-08 8:24
sponsorJudah Gabriel Himango17-Jun-08 8:24 
GeneralRe: Clickable Multiple Labels Pin
djnevs17-Jun-08 9:04
djnevs17-Jun-08 9:04 
GeneralRe: Clickable Multiple Labels Pin
Judah Gabriel Himango17-Jun-08 9:57
sponsorJudah Gabriel Himango17-Jun-08 9:57 
QuestionC# Vocabulary Chart (or Flow Chart) [modified] Pin
JustBFlat4Now17-Jun-08 7:19
JustBFlat4Now17-Jun-08 7:19 
AnswerRe: C# Vocabulary Chart (or Flow Chart) Pin
Thomas Stockwell18-Jun-08 16:09
professionalThomas Stockwell18-Jun-08 16:09 
GeneralRe: C# Vocabulary Chart (or Flow Chart) Pin
JustBFlat4Now23-Jun-08 10:00
JustBFlat4Now23-Jun-08 10:00 

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.