如何将GridView的标题和列从LTR交换到RTL [英] How to swap gridview header and column from ltr to rtl

查看:87
本文介绍了如何将GridView的标题和列从LTR交换到RTL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个网格,用于显示子类别中的课程代码,课程名称,Lavel代码和可能的产品.
现在,当我显示产品时,我将显示包含这些列的网格视图,



这是英语的Ltr

课程代码课程名称组类型Lavel代码

IC 101简介伊斯兰文化1 1
IC 101简介伊斯兰文化1 1
IC 101简介伊斯兰文化1 1


现在我的要求是我想从表单中单击阿拉伯语"按钮.
那时我的gridview会像这样改变方向

Lavel代码组类型课程名称课程代码
1 1简介.伊斯兰文化IC 101



有什么办法可以在网格视图控件中做到这一点?如果不能,那么任何人都可以向我提供执行此操作的示例代码.
非常紧急,我花了两三天时间,但我没有得到get.pls的答复.

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.

推荐答案

嗨 阿夫塔巴利(Aftabali),

您应该为每个gridview定义两个查询,例如

如果我选择英语,则查询为
Hi Aftabali,

You should define two quries for each gridview like

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



如果我选择阿拉伯语,则查询为



if i am selecting Arabic then query is

SELECT Age,Name,ID From Employee



谢谢,
Imdadhusen



Thanks,
Imdadhusen


这篇关于如何将GridView的标题和列从LTR交换到RTL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆