c# - 从右到左支持数据网格

标签 c# wpf gridview datagrid

如何在 WPF RightToLeft 中设置 GridView 的方向:

 <DataGrid x:Name="gvMembers" HorizontalAlignment="Left" Margin="10,139,0,0" VerticalAlignment="Top" Height="297" Width="580"/>

默认是从左到右。

最佳答案

设置FlowDirection="RightToLeft"

关于c# - 从右到左支持数据网格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17521796/

相关文章:

c# - WPF 数据绑定(bind)到非属性

c# - 如何为 WPF 应用程序创建内置数据库

wpf - 从弹出的(“child”窗口重新加载父窗口

wpf - 如何在 WPF GridView 中使用 ColumnSpans 创建多个标题?

c# - 等效于 Powershell [ValidateSet]

c# - Vanilla .Net 4 上的 Visual Studio 异步 CTP?

c# - 图像对应用程序内存使用的影响

c# - 如果在构造函数中设置 DataContext,在调用 InitializeComponent() 之前或之后设置它是否重要?

c# - 无法将类型 'string' 隐式转换为 'System.Web.UI.WebControls.Label'

c# - GridView ASP.NET C# 中的丑陋时间格式