If I understand your requirement correctly you are trying to assign a fixed text "Type" for the first column and fixed two values, "A" and "B", for the second column. For the first column you can use a simple GridViewTextBoxColumn
and specify the default text for that cell. In addition, in the DefaultValuesNeeded
event you can set this specific string as default value for the cell. As to the second column, since you have two options, I would recommend you to use a GridViewComboBoxColumn
. You can find below a sample code snippet which result is illustrated in the screenshot:
GridViewTextBoxColumn typeColumn =
GridViewComboBoxColumn comboColumn =
comboColumn.DataSource = GetData();
.radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
.radGridView1.DefaultValuesNeeded += radGridView1_DefaultValuesNeeded;
DataTable dt =
sender, Telerik.WinControls.UI.GridViewRowEventArgs e)
If it is not the exact requirement that you are trying to achieve, please specify in details what is the goal that you are trying to accomplish. Thus, we would be able to think about a suitable solution and assist you further.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.