Hi,
I'm using telerik rad controls and I've encountered roadblocks.
I've application that have RadGridView with multiple RadComboBox different datasource.
Questions:
How I'll bind a specific cell in RadGridView with ComboBox? Please see my codes below.
private void grdList_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
DataTable dt = PopulateList();
GridViewComboBoxColumn comboCol = e.Column as GridViewComboBoxColumn;
comboCol.DataSource = dt;
((GridViewComboBoxColumn)e.Column).DataSource = dt;
}
This code bind all the Rad Combo and I want only the specific cell..
Like this one on DataGridView
(grdList.Rows[e.RowIndex].Cells[4] as DataGridViewComboBoxCell).DataSource = _dt;
(grdList.Rows[e.RowIndex].Cells[4] as DataGridViewComboBoxCell).ValueMember = "CODE";
(grdList.Rows[e.RowIndex].Cells[4] as DataGridViewComboBoxCell).DisplayMember = "NAME";
Thanks
I'm using telerik rad controls and I've encountered roadblocks.
I've application that have RadGridView with multiple RadComboBox different datasource.
Questions:
How I'll bind a specific cell in RadGridView with ComboBox? Please see my codes below.
private void grdList_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
DataTable dt = PopulateList();
GridViewComboBoxColumn comboCol = e.Column as GridViewComboBoxColumn;
comboCol.DataSource = dt;
((GridViewComboBoxColumn)e.Column).DataSource = dt;
}
This code bind all the Rad Combo and I want only the specific cell..
Like this one on DataGridView
(grdList.Rows[e.RowIndex].Cells[4] as DataGridViewComboBoxCell).DataSource = _dt;
(grdList.Rows[e.RowIndex].Cells[4] as DataGridViewComboBoxCell).ValueMember = "CODE";
(grdList.Rows[e.RowIndex].Cells[4] as DataGridViewComboBoxCell).DisplayMember = "NAME";
Thanks