expandablegridview Adding and Inserting Rows

电脑杂谈  发布时间:2017-04-21 09:10:57  来源:网络整理
expandablegridviewexpandablegridview

When RadGridView is in unbound mode, you can add new rows to the Rows collection.

For example, if the grid control contains four columns – GridViewTextBoxColumn, GridViewDecimalColumn, GridViewDateTimeColumn and GridViewCheckBoxColumn you can add an empty row as it is demonstrated in the code snippet below.

The RadGridView.Rows.AddNew() method adds an empty row and allows the user to enter a value for each column cells’:

The RadGridView.Rows.Add(value-for-first-column, value-for-second-column, value-for-third-column) method adds a new row with the specified values. You can use the following code snippet to add values for each column:

You can also add rows by creating an instance of GridViewDataRowInfo and adding it to the Rows collection of RadGridView:

Rows can be inserted at a specified position by using the Insert method of the Rows collection. Below you can see an example of this functionality:

Conditional Formatting Rows

Creating custom rows

Drag and Drop

Formatting Rows

GridViewRowInfo


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-42592-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      • 王爱景
        王爱景

        应当击沉

      • 靳凯凯
        靳凯凯

        美国在反is的问题上本身就是矛盾的

      • 张增强
        张增强

        击不击沉是决策者的事

      热点图片
      拼命载入中...