Click here to Skip to main content
16,016,580 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

I have a grid which displays a Course Code, Course Name ,Lavel Code and possible products within the subcategory.
Now when i display the products I display my gridview containing these columns,



This is Ltr for English language

Course Code Course Name Group Type Lavel Code

IC 101 Intro. to Islamic Culture 1 1
IC 101 Intro. to Islamic Culture 1 1
IC 101 Intro. to Islamic Culture 1 1


Now what my requirement is that i would like to Click Arabic button from the form.
At that time my gridview will be change direction like that

Lavel Code Group Type Course Name Course Code
1 1 Intro. to Islamic Culture IC 101



Is there any way of doing this in a grid view control? If not can anyone provide me the sample code to do this.
Its very urgent i tired two and three day but i didn't get.pls reply as soon.
Posted
Comments
Sunasara Imdadhusen 27-Oct-10 5:22am    
You want it reverse like Last column should First.. and respectively
skaftabali 27-Oct-10 6:00am    
yes Exactly i want same like that
Sunasara Imdadhusen 27-Oct-10 7:12am    
All the column are created dynamically or design time?
skaftabali 27-Oct-10 7:22am    
All the column are dynemically
skaftabali 27-Oct-10 7:52am    
i am using one form for both English and Arabic. Thanks for reply and chat

1 solution

Hi Aftabali,

You should define two quries for each gridview like

if i am selecting English the query is
SQL
SELECT ID,Name,Age From Employee


if i am selecting Arabic then query is
SQL
SELECT Age,Name,ID From Employee


Thanks,
Imdadhusen
 
Share this answer
 
Comments
Sunasara Imdadhusen 27-Oct-10 7:45am    
You can also refer http://www.vb-tips.com/DataTableColumns.aspx
skaftabali 27-Oct-10 7:51am    
i am using one form for both English and Arabic.
Thanks for reply and chat
Sunasara Imdadhusen 27-Oct-10 8:46am    
Happy to help!

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