Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Visual Studio .NET
VS.NET General Discussion
How to take the Date value from datagridview and transfer it to a label
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="chrisjlocke1, post: 186403, member: 75474"] Also, if the user has clicked a cell (which they have as you're in cell content click) then you can use [code] dtpur.Text = dgview.currentrow.Cells(2).Value.ToString [/code] Also, a couple of suggestions. If the cell content is blank (empty) then your code will fail - it cannot convert the .value to ToString Rather than explicitly using (2) as the third column, use enums - what happens if you move this column or add a column at the beginning ... you have to change all the (2) to (3).... a major pain.... [/QUOTE]
Insert quotes…
Verification
Post reply
Visual Studio .NET
VS.NET General Discussion
How to take the Date value from datagridview and transfer it to a label
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom