In my Radgridview I have a combobox column with 3 predifined value.
1. "No Change"
2. "Partial Return"
3. "Full Return"
I want to set "No Change" as my default value. how can I do that?
My existing code
01.
'>>>>>Create combobox column "status". Datasource "return_status" table
02.
Dim
clm_status
As
New
GridViewComboBoxColumn
03.
clm_status =
CType
(dgv_return.Columns(
"status"
), GridViewComboBoxColumn)
04.
clm_status.DataSource = ds.Tables(
"return_status"
)
05.
clm_status.DisplayMember =
"status_display"
06.
clm_status.ValueMember =
"status_value"
07.
08.
09.
'>>>>>Populate Radgridview "dgv_return". Data source "due_bill_detail" table
10.
For
Each
row
As
DataRow
In
ds.Tables(
"due_bill_detail"
).Rows
11.
12.
Dim
rowInfo
As
New
GridViewDataRowInfo(dgv_return.MasterView)
13.
14.
rowInfo.Cells(dgv_return.Columns(
"status"
).Index).Value =
"No Change"
'This is the combobox column. Its not working
15.
rowInfo.Cells(dgv_return.Columns(
"item_code"
).Index).Value = row(
"item_code"
)
'This is working fine
16.
rowInfo.Cells(dgv_return.Columns(
"item_name"
).Index).Value = row(
"item_name"
)
'This is working fine
17.
dgv_return.Rows.Add(rowInfo)
18.
Next
row