G
Guest
This is for a Win form.
SP sends back the PostMark date to my datagrid, shows proper date in
datagrid. When user clicks on datagrid, the code sends the current row to
text box. The text box shows the date and 12:00:00 AM. How do I get rid of
the time?
My code below.
int rowNum = dgDealerInfo.CurrentCell.RowNumber;
object Cell1 = dgDealerInfo[rowNum, 0];
object Cell2 = dgDealerInfo[rowNum, 1];
object Cell3 = dgDealerInfo[rowNum, 2];
object Cell4 = dgDealerInfo[rowNum, 3];
object Cell5 = dgDealerInfo[rowNum, 4];
string s = string.Format(Cell3 + System.Environment.NewLine + Cell4 +
System.Environment.NewLine + Cell5);
string s1 = string.Format(Cell1 + "");
string s2 = string.Format(Cell2 + "");
SP sends back the PostMark date to my datagrid, shows proper date in
datagrid. When user clicks on datagrid, the code sends the current row to
text box. The text box shows the date and 12:00:00 AM. How do I get rid of
the time?
My code below.
int rowNum = dgDealerInfo.CurrentCell.RowNumber;
object Cell1 = dgDealerInfo[rowNum, 0];
object Cell2 = dgDealerInfo[rowNum, 1];
object Cell3 = dgDealerInfo[rowNum, 2];
object Cell4 = dgDealerInfo[rowNum, 3];
object Cell5 = dgDealerInfo[rowNum, 4];
string s = string.Format(Cell3 + System.Environment.NewLine + Cell4 +
System.Environment.NewLine + Cell5);
string s1 = string.Format(Cell1 + "");
string s2 = string.Format(Cell2 + "");