开发者

Add row in RadGridview control

开发者 https://www.devze.com 2023-03-08 14:50 出处:网络
I\'m using RadDatagridview control, it has 3 columns, the first one is Combobox column. I need to add new rows using Rows.Add() method in Raggridview as the following:

I'm using RadDatagridview control, it has 3 columns, the first one is Combobox column.

I need to add new rows using Rows.Add() method in Raggridview as the following:

gvRadGridviewControl.Rows.Add("test","test1","test2");

My issue is, the first column is combobox, how can I fill the combobox dynamiclly? or even from the UI designer?

My datagrid is not binded to any da开发者_运维百科tasource.


you can populate data in combo in the GridViewComboBoxColumn using it's DataSource property. when you create your columns and add them to the GridView.Columns collection, you can access the GridViewComboBoxColumn and populate it with data.

0

精彩评论

暂无评论...
验证码 换一张
取 消