Click here to Skip to main content
15,905,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Score
1.1
2.0
3.1
4.2
I want the content of the data displyed in different type?
How to ?
Please!
Posted
Comments
hambor 18-Jun-11 7:55am    
this is a column in dataGridView
arathi_suresh 18-Jun-11 8:16am    
Question not clear... What is the issue.. What is the scenario and what do you want?
hambor 18-Jun-11 8:37am    
Numth Data
1 200.005
2 100.001
I want set these data in dataGridView by C#
How to ?
Do you clear?
hambor 18-Jun-11 8:38am    
See Solution 1

VB
Numth   Data
1     200.005
2     100.001

I want set these data in dataGridView by C#
How to ?
Do you clear?
 
Share this answer
 
In the client side,

<asp:gridview id="grd" runat="server" emptydatatext="No Records" autogeneratecolumns="false">
<columns>
<asp:templatefield headertext="Num">
<itemtemplate><%#Eval("Numth")%></itemtemplate>


<asp:templatefield headertext="Data">
<itemtemplate><%#Eval("Data")%></itemtemplate>

</columns>


In server side,

grd.Datasource=ds;//ds is the dataset you have to bind
grd.DataBind();
 
Share this answer
 
v5
Comments
hambor 18-Jun-11 8:51am    
I mean the Bold Port of 200.005
I can't paste the pic, you can see sloltion 1 fistly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900