Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datagrid column

Status
Not open for further replies.

calvi

Technical User
May 26, 2003
87
NL
hello,

I have a datagrid with column filled with integer. I want to show in the datagrid not the integer (numbers) but in text. example: with number 1 I want to replace with a name(string): name1
with number 2 replace with name2
with number 3 replace with name3

it is like combobox where you can fill items collections. But I want to use a textbox and show name (string) instead.

thx.
 
Assuming you have a TableStyle and a ColumnStyle for your column, you can set the format of your column to something like this:

Name ###,##0.##
 
i use visual studio 2005. I cannot find tablestyle or columnstyle. do you know?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top