DB using LINQ

已取消 已发布的 Sep 15, 2008 货到付款
已取消 货到付款

how the `GridView` control can be nested to show master/detail relationships for multilevel hierarchal data. In this article, I have implemented it for three levels, and it can be implemented for *n* levels quite easily, by maintaining the information about the edit index of the parent `GridView` controls.

## Deliverables

The parent `GridView` is templated for all columns selected in the `SelectCommand`. As you can see, in the code, there is one more template field named ‘`View`’ which is the only part where the magic lies! In its `IetmTemplate`, there is a button with the `Text`, ‘+’, and `CommandName`, ‘Edit’. This plus sign button, when clicked, lets the `GridView` to enter edit mode, and fires the `OnRowEditing` event which is handled. What is to be shown in the edit mode is implemented in the `EditItemTemplate`. As shown in the code, it has a button with `CommandName` 'Cancel' and `Text` ‘-’ (to collapse the `GridView` by just running the `Cancel` command, which resets the edit index to -1 and the `ParentGridView` comes out of editing mode; obviously, the `ChildGridView` shown in edit mode will no longer be visible, which gives the notion of collapsibility). Next to the Cancel ‘-' button is a `ChildGridView`.

PHP

项目ID: #3227006

关于项目

3个方案 远程项目 活跃的Sep 20, 2008

有3名威客正在参与此工作的竞标,均价$411/小时

uponheaven

See private message.

$850USD 在1天里
(12条评论)
3.5
AGNasser

See private message.

$127.5USD 在1天里
(3条评论)
2.6
DobriyEeh

See private message.

$255USD 在1天里
(1条评论)
1.1