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("Wo rkTime").V alue.ToStr ing.Substr ing(0, 5))
How could I do it?
Thank you.
I want to check datagridview value at debug mode.
fill_data(dgvRow.Cells("Wo
How could I do it?
Thank you.
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.
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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)
ASKER
Hi mohd_haq,
In debug mode, I try to use add watch, but can not see the value ?
Thank you.
In debug mode, I try to use add watch, but can not see the value ?
Thank you.
ASKER
Hi jpaulino,
It is still in VS environment.
Thank you.
It is still in VS environment.
Thank you.
ASKER
Hi Zhaolai,
The about ten of it or sometimes even more and I don't want to assign it to variable.
Thank you.
The about ten of it or sometimes even more and I don't want to assign it to variable.
Thank you.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, I tried it again, it works.
Thank you very much for your help.
Thank you very much for your help.