|
-
Apr 25th, 2019, 12:03 AM
#1
Thread Starter
Member
Datagrid set value as Date
Hi,
Is there any way to set the value of an item in DGV in a Date only?.
I was trying to send each cell value in my DGV.
but when I change the value to ".tostring" it transfer the date also with time.
but when I change the value to format date. it doesnt accept to transfer if cell value is Null.
here is my code.
Dim i As Integer
i = DGVEmployee.CurrentRow.Index
LblID.Text = DGV.Item(0, i).Value.ToString
TBEmpID.Text = DGV.Item(1, i).Value.ToString
TBSponsor.Text = DGV.Item(2, i).Value.ToString
TBDesignation.Text = DGV.Item(3, i).Value.ToString
TBJoinDate.Text = Format(DGV.Item(4, i).Value, "dd-MMM-yyyy")
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|