Click here to Skip to main content
15,900,506 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is dere is no one to solve the query!** Pin
Pete O'Hanlon13-Apr-07 3:08
mvePete O'Hanlon13-Apr-07 3:08 
Questiondatagridview question, plz help Pin
akkram12-Apr-07 20:52
akkram12-Apr-07 20:52 
AnswerRe: datagridview question, plz help Pin
phantanagu12-Apr-07 22:03
phantanagu12-Apr-07 22:03 
GeneralRe: datagridview question, plz help Pin
akkram12-Apr-07 22:34
akkram12-Apr-07 22:34 
AnswerRe: datagridview question, plz help Pin
Jaiprakash M Bankolli13-Apr-07 1:19
Jaiprakash M Bankolli13-Apr-07 1:19 
QuestionDataGridView performance problem Pin
Damir Ugrin12-Apr-07 20:20
Damir Ugrin12-Apr-07 20:20 
AnswerRe: DataGridView performance problem Pin
il_masacratore12-Apr-07 21:34
il_masacratore12-Apr-07 21:34 
GeneralRe: DataGridView performance problem Pin
Damir Ugrin13-Apr-07 22:22
Damir Ugrin13-Apr-07 22:22 
Thanks for your answer,

I've allready tought about such solution and I like it. But the problem is not in the number of records. The problem is with image columns.
Yesterday I have tried my last desperate atempt to solve the problem and it works.
Here is what I have done:

When datatable refresh background worker executes (approx. every 4 seconds), then I execute the following code also (but not allways, let say every 60 min.):

int index = this.dispatchstatusImageAllCol.Index;
int displayindex = this.dispatchstatusImageAllCol.DisplayIndex;
bool visible = this.dispatchstatusImageAllCol.Visible;
int width = this.dispatchstatusImageAllCol.Width;
string name = this.dispatchstatusImageAllCol.Name;
string hdr = this.dispatchstatusImageAllCol.HeaderText;
this.gridAll.Columns.Remove(this.dispatchstatusImageAllCol);
this.dispatchstatusImageAllCol = new DataGridViewImageColumn(); // 1. most important line
this.dispatchstatusImageAllCol.DisplayIndex = displayindex;
this.dispatchstatusImageAllCol.Visible = visible;
this.dispatchstatusImageAllCol.Width = width;
this.dispatchstatusImageAllCol.ContextMenuStrip = this.gridAllMenuStrip;
this.dispatchstatusImageAllCol.HeaderText = "";
this.dispatchstatusImageAllCol.Name = name;
this.dispatchstatusImageAllCol.ReadOnly = true;
this.dispatchstatusImageAllCol.Resizable = DataGridViewTriState.True;
this.dispatchstatusImageAllCol.HeaderText = hdr;
this.gridAll.Columns.Insert(index, this.dispatchstatusImageAllCol); // 2. important line

This is probably the proof that there is a memory management problem with DataGridViewImageColumn.



Questionneed coding in c# Pin
Revathi Raj12-Apr-07 20:16
Revathi Raj12-Apr-07 20:16 
AnswerRe: need coding in c# Pin
MIHAI_MTZ12-Apr-07 20:47
MIHAI_MTZ12-Apr-07 20:47 
GeneralRe: need coding in c# Pin
Martin#12-Apr-07 21:07
Martin#12-Apr-07 21:07 
AnswerRe: need coding in c# Pin
Martin#12-Apr-07 21:47
Martin#12-Apr-07 21:47 
QuestionRegarding Adding Bullets in C# Pin
sulabh202012-Apr-07 20:07
sulabh202012-Apr-07 20:07 
AnswerRe: Regarding Adding Bullets in C# Pin
Jaiprakash M Bankolli13-Apr-07 1:09
Jaiprakash M Bankolli13-Apr-07 1:09 
AnswerRe: Problem Regarding Adding Bulltes to word document using c# Pin
Sathesh Sakthivel12-Apr-07 19:54
Sathesh Sakthivel12-Apr-07 19:54 
QuestionRe: Problem Regarding Adding Bulltes to word document using c# Pin
sulabh202012-Apr-07 20:03
sulabh202012-Apr-07 20:03 
QuestionDateTimrPicker [modified] Pin
7112-Apr-07 19:48
7112-Apr-07 19:48 
QuestionHow to insert data directly in datagridview? Pin
indiaone12-Apr-07 19:41
indiaone12-Apr-07 19:41 
AnswerRe: How to insert data directly in datagridview? Pin
Sathesh Sakthivel12-Apr-07 19:57
Sathesh Sakthivel12-Apr-07 19:57 
Questionstatusbar Pin
kalyan_241612-Apr-07 19:41
kalyan_241612-Apr-07 19:41 
AnswerRe: statusbar Pin
Sathesh Sakthivel12-Apr-07 19:52
Sathesh Sakthivel12-Apr-07 19:52 
AnswerRe: statusbar Pin
KKrista12-Apr-07 19:59
KKrista12-Apr-07 19:59 
Questionmultiple instances Pin
picasso212-Apr-07 17:37
picasso212-Apr-07 17:37 
QuestionRe: multiple instances Pin
Vikram A Punathambekar12-Apr-07 18:08
Vikram A Punathambekar12-Apr-07 18:08 
AnswerRe: multiple instances Pin
Christian Graus12-Apr-07 18:16
protectorChristian Graus12-Apr-07 18:16 

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.