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.

$850 USD 1日以内
(12件のレビュー)
3.5
AGNasser

See private message.

$127.5 USD 1日以内
(3件のレビュー)
2.6
DobriyEeh

See private message.

$255 USD 1日以内
(レビュー1件)
1.1