Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

How to get datagridview cells value at debug mode

Hi All,

I want to check datagridview value at debug mode.

fill_data(dgvRow.Cells("WorkTime").Value.ToString.Substring(0, 5))

How could I do it?

Thank you.

Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Don't understand your question emi_sastra. Can you clarify it?
Hi,

I think You would need to check in the DataBound event for the grid (once the data has actually been bound to the grid).

/Carl.
Avatar of emi_sastra
emi_sastra

ASKER

Hi All,

I meant how to check it at debug mode / trace mode ?
Because I can not hover there and get information from it ?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of mohd_haq
mohd_haq
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

What version do you use?

If I understand you have the application already on production and you want to get the error information that sometimes occurs, right?

If so, you can create a log file with the stack information of the errors.
Place a breakpoint on the second line. Run in debug mode. When it hits the breakpoint, mouse over strTemp. See code below:

Dim strTemp as String = dgvRow.Cells("WorkTime").Value.ToString.Substring(0, 5)
fill_data(strTemp)

Open in new window

Hi mohd_haq,

In debug mode, I try to use add watch, but can not see the value ?

Thank you.
Hi jpaulino,

It is still in VS environment.

Thank you.
Hi Zhaolai,

The about ten of it or sometimes even more and I don't want to assign it to variable.

Thank you.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, I tried it again, it works.

Thank you very much for your help.