Hi Sahane,
Could you please include what version of Visual Studio you’re using along with a screenshot? Please send your license key to support AT wisej DOT com.
Thanks,
Levie
–COMMENT— & FOLLOW UP Question please is it OK to manually invoke this render method for each row ?
– I didn’t want to make a fresh question for naught,
please & thank you
Greetings all, I did this — > [ Image attached ]
[
if (iRowIndex >= 0 && iColIndex == colIndexNoteImage) // Image Column r.e. display
{
// DYNAMIC DISPLAY OF Notes Image WHEN Notes column has valid NoteId
pbNoteId = // from some other cell
if (pbNoteId > 0)
{
e.CellStyle.BackgroundImage = Properties.Resources.note;
e.CellStyle.BackgroundImageAlign = ContentAlignment.MiddleCenter;
e.CellStyle.BackgroundImageLayout = ImageLayout.BestFit;
e.CellStyle.Render();
}
else
{ e.CellStyle.BackgroundImage = null; }
}
]
to attempt to address my inconsistent DGV cell image response with scrolling
& its seems to work. I could not locate any documentation WiseJ or MSFT regarding this
method off of e.CellStyle.Render();
the UI is still a bit slow — is it OK to manually invoke this render method for each row ?
Or am i causing an additional needless performance hit ?
DataGridViewCellFormattingEventArgs.CellStyle.Render();
–COMMENT— & FOLLOW UP Question please is it OK to manually invoke this render method for each row ?
– I didn’t want to make a fresh question for naught,
please & thank you
Greetings all, I did this — > [ Image attached ]
[
if (iRowIndex >= 0 && iColIndex == colIndexNoteImage) // Image Column r.e. display
{
// DYNAMIC DISPLAY OF Notes Image WHEN Notes column has valid NoteId
pbNoteId = // from some other cell
if (pbNoteId > 0)
{
e.CellStyle.BackgroundImage = Properties.Resources.note;
e.CellStyle.BackgroundImageAlign = ContentAlignment.MiddleCenter;
e.CellStyle.BackgroundImageLayout = ImageLayout.BestFit;
e.CellStyle.Render();
}
else
{ e.CellStyle.BackgroundImage = null; }
}
]
to attempt to address my inconsistent DGV cell image response with scrolling
& its seems to work. I could not locate any documentation WiseJ or MSFT regarding this
method off of e.CellStyle.Render();
the UI is still a bit slow — is it OK to manually invoke this render method for each row ?
Or am i causing an additional needless performance hit ?
DataGridViewCellFormattingEventArgs.CellStyle.Render();
–COMMENT— & FOLLOW UP Question please is it OK to manually invoke this render method for each row ?
– I didn’t want to make a fresh question for naught,
please & thank you
Greetings all, I did this — > [ Image attached ]
[
if (iRowIndex >= 0 && iColIndex == colIndexNoteImage) // Image Column r.e. display
{
// DYNAMIC DISPLAY OF Notes Image WHEN Notes column has valid NoteId
pbNoteId = // from some other cell
if (pbNoteId > 0)
{
e.CellStyle.BackgroundImage = Properties.Resources.note;
e.CellStyle.BackgroundImageAlign = ContentAlignment.MiddleCenter;
e.CellStyle.BackgroundImageLayout = ImageLayout.BestFit;
e.CellStyle.Render();
}
else
{ e.CellStyle.BackgroundImage = null; }
}
]
to attempt to address my inconsistent DGV cell image response with scrolling
& its seems to work. I could not locate any documentation WiseJ or MSFT regarding this
method off of e.CellStyle.Render();
the UI is still a bit slow — is it OK to manually invoke this render method for each row ?
Or am i causing an additional needless performance hit ?
DataGridViewCellFormattingEventArgs.CellStyle.Render();
–COMMENT— & FOLLOW UP Question please is it OK to manually invoke this render method for each row ?
– I didn’t want to make a fresh question for naught,
please & thank you
Greetings all, I did this — > [ Image attached ]
[
if (iRowIndex >= 0 && iColIndex == colIndexNoteImage) // Image Column r.e. display
{
// DYNAMIC DISPLAY OF Notes Image WHEN Notes column has valid NoteId
pbNoteId = // from some other cell
if (pbNoteId > 0)
{
e.CellStyle.BackgroundImage = Properties.Resources.note;
e.CellStyle.BackgroundImageAlign = ContentAlignment.MiddleCenter;
e.CellStyle.BackgroundImageLayout = ImageLayout.BestFit;
e.CellStyle.Render();
}
else
{ e.CellStyle.BackgroundImage = null; }
}
]
to attempt to address my inconsistent DGV cell image response with scrolling
& its seems to work. I could not locate any documentation WiseJ or MSFT regarding this
method off of e.CellStyle.Render();
the UI is still a bit slow — is it OK to manually invoke this render method for each row ?
Or am i causing an additional needless performance hit ?
DataGridViewCellFormattingEventArgs.CellStyle.Render();
–COMMENT— & FOLLOW UP Question please is it OK to manually invoke this render method for each row ?
– I didn’t want to make a fresh question for naught,
please & thank you
Greetings all, I did this — > [ Image attached ]
[
if (iRowIndex >= 0 && iColIndex == colIndexNoteImage) // Image Column r.e. display
{
// DYNAMIC DISPLAY OF Notes Image WHEN Notes column has valid NoteId
pbNoteId = // from some other cell
if (pbNoteId > 0)
{
e.CellStyle.BackgroundImage = Properties.Resources.note;
e.CellStyle.BackgroundImageAlign = ContentAlignment.MiddleCenter;
e.CellStyle.BackgroundImageLayout = ImageLayout.BestFit;
e.CellStyle.Render();
}
else
{ e.CellStyle.BackgroundImage = null; }
}
]
to attempt to address my inconsistent DGV cell image response with scrolling
& its seems to work. I could not locate any documentation WiseJ or MSFT regarding this
method off of e.CellStyle.Render();
the UI is still a bit slow — is it OK to manually invoke this render method for each row ?
Or am i causing an additional needless performance hit ?
DataGridViewCellFormattingEventArgs.CellStyle.Render();
–COMMENT— & FOLLOW UP Question please is it OK to manually invoke this render method for each row ?
– I didn’t want to make a fresh question for naught,
please & thank you
Greetings all, I did this — > [ Image attached ]
[
if (iRowIndex >= 0 && iColIndex == colIndexNoteImage) // Image Column r.e. display
{
// DYNAMIC DISPLAY OF Notes Image WHEN Notes column has valid NoteId
pbNoteId = // from some other cell
if (pbNoteId > 0)
{
e.CellStyle.BackgroundImage = Properties.Resources.note;
e.CellStyle.BackgroundImageAlign = ContentAlignment.MiddleCenter;
e.CellStyle.BackgroundImageLayout = ImageLayout.BestFit;
e.CellStyle.Render();
}
else
{ e.CellStyle.BackgroundImage = null; }
}
]
to attempt to address my inconsistent DGV cell image response with scrolling
& its seems to work. I could not locate any documentation WiseJ or MSFT regarding this
method off of e.CellStyle.Render();
the UI is still a bit slow — is it OK to manually invoke this render method for each row ?
Or am i causing an additional needless performance hit ?
DataGridViewCellFormattingEventArgs.CellStyle.Render();
Hi, my license is:…
Hi Moreno,
sorry to hear that. Please contact us at supportATwisej.com with your license key and don’t post it in a public forum.
Thanks in advance,
Frank
OK I had to use BackgroundImage property and its still not clean the scrollbar makes it wonky the top of the grid doesn’t refresh .
The BackgroundImageSource property accepted the string from resource but didn’t work for me
if (pbNoteId > 0)
{
//e.CellStyle.BackgroundImageSource = Properties.Resources.note.ToString();
e.CellStyle.BackgroundImage = Properties.Resources.note;
}
else
{
//e.CellStyle.BackgroundImageSource = null;
e.CellStyle.BackgroundImage = null;
}
Thank you
“If the column is an image column set the image (either a string or an image) to e.Value. ”
Is that to be performed in the CellFormatting method and is it specifically for the DataGridViewImageColumn ?
Please & Thank you I grabbed someones sample from here and it is setting e.CellStyle.BackgroundImageSource
i was just about to test that set to a string Properties.Resources.note.ToString();
CellFormatting is to set the formatting of the cell, not to change the value. Use the e.Value and e.CellStyle to adjust the formatting.
If the column is an image column set the image (either a string or an image) to e.Value. If you have different requirement send a small test case showing what you need to do and what is the issue you are encountering.
If I wanted to implement this myself, what’d be the best way to go about it? I’ve been looking for a good extension or example of wrapping Javascript. This isn’t for a UI widget or to use in just one control, so would it be more like the client clipboard and client filesystem extensions? Would I be able to use Microsoft.JSInterop to build a wrapper, or does that only work in Blazor?
Same problem.
Hi Julie,
thx for your answer. I cannot reliably reproduce the behaviour in a sample project. Perhaps it is due to the current version of the MS Edge browser? Sometimes I even had to click three times before the click event was triggered. The property “ShowAutoLoader” was set to TRUE.
If it happens again, I’ll make a short video.
regards,
Stephan
Double with question some posts earlier.
Didn’t see because searched for “NavigationBar” not “Navigation Bar”
Hi Frank,
thank you. Worked as you described. (btw: The updated files are not part of the 3.2 archive zip file)
Leads to the question if there is (by chance) a *net.core* report viewer example .. 😉
Regards, Olaf
Can you create a small sample project that shows this behavior and post it here?
I tried and I cannot reproduce. See attached test case.
Hello, I found that the issue is related to the theme, e.g. I changed the theme to blue-2 and the issue was fixes.
maybe the default theme has rounded corners.