Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have grid view to show product information . I am using combo box. There is different search type that is 1. search by name, 2.by category etc here I use select * but when i am going to search amount of product stock there is only one column because here I am using select stock from product.
So my problem is my stock is printed after select * column finishes.
Is there any solution to display it ?
Posted
Comments
Sergey Alexandrovich Kryukov 8-Aug-15 2:30am    
Grid view? Which one? Exact full type name, please. Do you think there is only one? No.
And what's the problem?
—SA
Member 11498882 8-Aug-15 4:30am    
I want to display all the things for example... 1. all product name present in product table 2.All locations 3. prices of any product 4. stock available
when I want to show all name name display but when i want to display price grid view data is clear but the header name 'Product Name' is not clear and my next 'Product price' header is display after that 'Product Name' header..
I want that if I display 'Product Name' then 'Product price' then grid view must show only price header

1 solution

Let my suggestion is.
I am giving quit syntax here.. it may help u..
XML
<pre lang="vb"><gridview autogenerated column="false">
<column>
<asp:templatefield header="product name>
<itemtemplate>
<asp:label id="lProd" text='<% Eval(# "product name") >'></label>
</item template>
<templatefield>
<asp:templatefield header="product prize>
<itemtemplate>
<asp:label id="lProd" text='<% Eval(# "product  prize") >'></label>
</item template>
<templatefield>
</column>
</gridview></pre>



Its just a syntax.. please neglectthe errors i done just grasp the idea..
By means of eval value and template header u can get the output.. and in gridview auto generated column="false"
 
Share this answer
 
v10
Comments
Member 11498882 10-Aug-15 5:02am    
Thank you sir for your suggestion.
But i am using c# windows application

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