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

C#

 
GeneralRe: Performance tip on extracting BLOB from database? Pin
Thomas ST7-Dec-09 2:43
Thomas ST7-Dec-09 2:43 
GeneralRe: Performance tip on extracting BLOB from database? Pin
Luc Pattyn7-Dec-09 3:15
sitebuilderLuc Pattyn7-Dec-09 3:15 
GeneralRe: Performance tip on extracting BLOB from database? Pin
Thomas ST7-Dec-09 7:23
Thomas ST7-Dec-09 7:23 
AnswerRe: Performance tip on extracting BLOB from database? Pin
PIEBALDconsult4-Dec-09 3:58
mvePIEBALDconsult4-Dec-09 3:58 
GeneralRe: Performance tip on extracting BLOB from database? Pin
Thomas ST7-Dec-09 1:23
Thomas ST7-Dec-09 1:23 
GeneralRe: Performance tip on extracting BLOB from database? Pin
PIEBALDconsult7-Dec-09 4:30
mvePIEBALDconsult7-Dec-09 4:30 
GeneralRe: Performance tip on extracting BLOB from database? Pin
Thomas ST7-Dec-09 7:27
Thomas ST7-Dec-09 7:27 
QuestionDataGridview Drag and drop Pin
anishkannan3-Dec-09 23:04
anishkannan3-Dec-09 23:04 
I am trying datagridview drag and drop itself for our application . i was tried this code

void dataGridView1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
DataGridView.HitTestInfo info = dataGridView1.HitTest(e.X, e.Y);
if (info.RowIndex >= 0)
{
DataGridViewRow view = dataGridView1.Rows[info.RowIndex];
if (view != null)
dataGridView1.DoDragDrop(view, DragDropEffects.Copy);
}
}

}
void dataGridView1_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}

void dataGridView1_DragDrop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(typeof(DataGridViewRow)))
{
DataGridView.HitTestInfo hitInfo = dataGridView1.HitTest(e.X, e.Y);

int index = hitInfo.RowIndex;

if (index >= 0)
{
DataGridViewRow baluba = (DataGridViewRow)e.Data.GetData(typeof(DataGridViewRow));
if (baluba != null)
{
dataGridView1.Rows.Add(baluba);

}
}
}
}




I have the index value of DragDrop method is -1. Not get correct value and also get exception in dataGridView1.Rows.Add(baluba); The exception is "System.InvalidOperationException" ...

How can achieve this ... Please help me....
QuestionNeed sample code Pin
kankeyan3-Dec-09 20:12
kankeyan3-Dec-09 20:12 
AnswerRe: Need sample code Pin
dan!sh 3-Dec-09 20:49
professional dan!sh 3-Dec-09 20:49 
AnswerRe: Need sample code Pin
PIEBALDconsult4-Dec-09 4:00
mvePIEBALDconsult4-Dec-09 4:00 
GeneralC# and timer Pin
nsjn3-Dec-09 19:46
nsjn3-Dec-09 19:46 
GeneralRe: C# and timer Pin
The Man from U.N.C.L.E.3-Dec-09 22:14
The Man from U.N.C.L.E.3-Dec-09 22:14 
GeneralRe: C# and timer Pin
Corinna John3-Dec-09 22:18
Corinna John3-Dec-09 22:18 
GeneralRe: C# and timer Pin
PIEBALDconsult4-Dec-09 4:02
mvePIEBALDconsult4-Dec-09 4:02 
GeneralRe: C# and timer Pin
nsjn4-Dec-09 18:56
nsjn4-Dec-09 18:56 
GeneralRe: C# and timer Pin
nsjn4-Dec-09 21:22
nsjn4-Dec-09 21:22 
QuestionLooking for ideas on how to release memory right before a generation 3 garbage collection [modified] Pin
GWBas1c3-Dec-09 19:23
GWBas1c3-Dec-09 19:23 
AnswerRe: Looking for ideas on how to release memory right before a generation 3 garbage collection Pin
Abhinav S3-Dec-09 19:58
Abhinav S3-Dec-09 19:58 
GeneralRe: Looking for ideas on how to release memory right before a generation 3 garbage collection Pin
GWBas1c3-Dec-09 20:28
GWBas1c3-Dec-09 20:28 
AnswerRe: Looking for ideas on how to release memory right before a generation 3 garbage collection Pin
Martin#3-Dec-09 20:38
Martin#3-Dec-09 20:38 
GeneralRe: Looking for ideas on how to release memory right before a generation 3 garbage collection Pin
GWBas1c3-Dec-09 21:01
GWBas1c3-Dec-09 21:01 
GeneralRe: Looking for ideas on how to release memory right before a generation 3 garbage collection Pin
Martin#3-Dec-09 21:20
Martin#3-Dec-09 21:20 
AnswerRe: Looking for ideas on how to release memory right before a generation 3 garbage collection Pin
puri keemti3-Dec-09 22:17
puri keemti3-Dec-09 22:17 
GeneralRe: Looking for ideas on how to release memory right before a generation 3 garbage collection Pin
GWBas1c3-Dec-09 23:32
GWBas1c3-Dec-09 23:32 

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.