DevExpress控件使用交流,DevExpress中国社区Dev联系电话 联系电话:023-68661681

如何通过创建自定义XtraVerticalGrid控件子节点来实现自定义行缩进?

来源:本站原创   发布时间:2012-07-24   浏览:2901次

本文主要介绍如果通过创建自定义DevExpress XtraVerticalGrid控件子节点来实现自定义行缩进。

注:从DevExpress 12.1版本开始,你可以通过VGridControlBase.OptionsView.LevelIndent属性来实现实现自定义行缩进。

C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication41
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
// cvGridControl1.IndentWidth = 0;
}
}
}

VB.NET
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms

Namespace WindowsApplication41
Partial Public Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
' cvGridControl1.IndentWidth = 0;
End Sub
End Class
End Namespace

本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:DevExpress控件中文网 [https://www.devexpresscn.com/]
本文地址:https://www.devexpresscn.com/post/266.html
在线
客服
微信
QQ 电话
023-68661681
返回
顶部