Customizing The Datagrid To Project The Selected Columns
Customizing The Datagrid To Project The Selected Columns
DeleteCommand(sender,e)
0 DELETE
1 DELETE
Header template
Item template
Footer template
Steps to customize the datagrid control to
provide update operation:
To do after the binding the dataset and
datamember to the datagrid control.
Right click on the datagrid control and click on the
property builder and click on the columns tab.
Uncheck “create columns automatically at
runtime” check box.
Select the columns to be projected from the
available columns list and pass it on to the
selected columns list and set their header Text
property.
Expand the button column node from the available
columns list and pass the edit,update,cancel node
to the selected columns list.
Tablecell / Cells(0)/controls(0) Controls(1) Controls(2) EditItemIndex = rowIndex(-1)
20 Marketing BANG
1 UPDATE CANCEL