DataGridView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a datagrid in my windows application, where data of a MS SQL Server
should be displayed. I did this and it works fine. Now I have the problem of
changing the format for displaying the date which is stored in the database.

The format in the database looks like this: yyyy-mm-dd hh:mm:ss:msms.
Displayed in the grid the date is like this yy-mm-dd hh-mm-ss. If I try to
change this afte filling the datagrid with the data of the database I get an
error, which says I cannot change the data because it is already in use.

can somebody help me?

mfg Bruce
 
Hi,

I have a datagrid in my windows application, where data of a MS SQL
Server should be displayed. I did this and it works fine. Now I have
the problem of changing the format for displaying the date which is
stored in the database.

The format in the database looks like this: yyyy-mm-dd hh:mm:ss:msms.
Displayed in the grid the date is like this yy-mm-dd hh-mm-ss. If I
try to change this afte filling the datagrid with the data of the
database I get an error, which says I cannot change the data because
it is already in use.

can somebody help me?

Please look up in the index of vs.net 2005 help: DataGridView control
[Windows Forms] and below that you'll find 'Formatting and styling' and
'Formatting data'. That should get you in the right direction.

Frans

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top