[查看] [1]我正在创建一个有界的radgrid,我试图将有界的组合框添加到rad网格,但是列正在显示。combobox没有显示。
答案 0 :(得分:1)
您可以找到结合this post中提供的组合/下拉列表使用RadGrid的各种示例。
答案 1 :(得分:0)
首先:您需要在问题或问题上更加明确。 也许添加一些代码或图像可以帮助我们了解更多。
据我了解,您拥有radgridview,并且希望特定列具有组合框作为一种类型。
您可以执行以下操作:
//define a GridViewMultiComboBoxColumn
GridViewMultiComboBoxColumn column = new GridViewMultiComboBoxColumn();
column.Name = "Your column name";
column.HeaderText = "The header text you want to have";
column.FieldName = "Field name, maybe you have a class read from a db";
column.DataSource = ds; //here you need to define your datasource for your combobox
column.ValueMember = "Value"; //depends on what you receive from datasource
column.DisplayMember = "Value"; //depends on what you receive from datasource
//add the column to your radgridview
gridView.MasterTemplate.Columns.Add(column);