All Answers

0 votes

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

  • Levie (ITG) answered Dec 8, 2023 - 9:58 pm
  • last active Dec 8, 2023 - 9:59 pm
0 votes

–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();

 

 

0 votes

–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();

 

 

0 votes

–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();

 

 

0 votes

–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();

 

 

0 votes

–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();

 

 

0 votes

–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();

 

 

0 votes
In reply to: license invalid

Hi, my license is:…

  • Moreno answered Dec 8, 2023 - 11:06 am
  • last active Dec 8, 2023 - 11:09 am
0 votes
In reply to: license invalid

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

0 votes

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

0 votes

“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();

0 votes

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.

https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellformattingeventargs

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.

  • Luca answered Dec 7, 2023 - 8:30 pm
0 votes
In reply to: webserial wrapper

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?

0 votes

Same problem.

0 votes
In reply to: Button click event

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

0 votes

Double with question some posts earlier.
Didn’t see because searched for “NavigationBar” not “Navigation Bar”

0 votes

Hi Frank,

thank you. Worked as you described.  (btw: The updated files are not part of the 3.2 archive zip file)

  • The reporting sample requieres a net4.8 environment and is not compatible with net.core due to system.web, right?
  • It requieres an old version of microsoft.sqlserver.types (12.0.5) – the actual version is not working.

Leads to the question if there is (by chance) a *net.core* report viewer example .. 😉

Regards, Olaf

 

 

0 votes
In reply to: Button click event

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.

0 votes
In reply to: Rounded Corners Issue

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.

0 votes

Hi Brayden,

You’ll need to set the StandardTab Property of the DataGridView to true!

Best,
Alaa

//

Showing 841 - 860 of 11k results