Q: DataGrid during edit

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

Guest

Hello,
I am editing my table through DataGrid, two questions:
1. when I click edit it enable to edit all the fields on the screen, can I
disable a few of them for editing.
2. Is it possible to format date and number in the datagrid?
Thanks,
Jim.
 
1. when I click edit it enable to edit all the fields on the screen,
can I
disable a few of them for editing.

Yes, set:

2. Is it possible to format date and number in the datagrid?

<asp:BoundColumn DataField="Column" DataFormatString="{0:C}"></asp:BoundColumn>

Where DataFormatString specifies essentially how you want ToString for that
column to be formatted.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
can you be more specific about DataFormatString, I need to show dd/MM/yyyy, I
just check it quickly, I could not figure out quickly.
 

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