E
eagle
How do I set dynamically which items I want to edit when I go into Edit
mode. The code below puts the entire row into Edit mode. The user has 2
buttons, one button uses the code below to edit the entire row, but the
other button wants to allow only certain fields to be editable, with the
other fields displayed but not in edit mode. How can I do this?
Dim dv As DataView
dv = ds.Tables(0).DefaultView
dgrid.EditItemIndex = e.Item.ItemIndex
dgrid.DataSource = dv
dgrid.DataBind()
mode. The code below puts the entire row into Edit mode. The user has 2
buttons, one button uses the code below to edit the entire row, but the
other button wants to allow only certain fields to be editable, with the
other fields displayed but not in edit mode. How can I do this?
Dim dv As DataView
dv = ds.Tables(0).DefaultView
dgrid.EditItemIndex = e.Item.ItemIndex
dgrid.DataSource = dv
dgrid.DataBind()