formate datagrid text columns

G

Guest

i currently have a datagrid with a price column and would like to know if
there is a way to formate the column so a '$' appears in front of everything
in the column. i've seen a few of the table style utilities people have
built, but i can't help but think there should be an easy way to do it. the
datagrid gets its info from a dataview.

i'm also curious if there is a way to make a column in the dataview display
as checkboxes in the datagrid. they user will not be able to use the check
boxes, just see if it is checked or not. is this possible and if so how? i'm
currently using c# .net and it is for a windows form, not a web form.

thanx for the help
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi Oscar,
i currently have a datagrid with a price column and would like to know if
there is a way to formate the column so a '$' appears in front of
everything
in the column.

The DataGridTextBoxColumn has the Format and FormatInfo properties you can
use to specify data formatting.
 

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

Top