|
|
|
Наследник DataRow
|
|||
|---|---|---|---|
|
#18+
Что мне нужно добавить чтобы наследник от DataRow заработал public class IdDataRow : DataRow { public int id; public IdDataRow(DataRowBuilder builder): base(builder) { } } IdDataRow idRow; DataTable journal = new DataTable("Journal"); idRow = (IdDataRow)journal.NewRow(); Что нужно добавить в класс IdDataRow чтобы заработало (IdDataRow)journal.NewRow()?? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.08.2009, 13:20 |
|
||
|
Наследник DataRow
|
|||
|---|---|---|---|
|
#18+
Пришлось сделать так public class MyTable : DataTable { public MyTable(string nane) : base(nane) { } protected override DataRow NewRowFromBuilder(DataRowBuilder builder) { return new IdDataRow(builder); } } И использовать свою табличку ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.08.2009, 07:15 |
|
||
|
|

start [/forum/topic.php?fid=17&msg=36141641&tid=1351712]: |
0ms |
get settings: |
9ms |
get forum list: |
22ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
177ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
53ms |
get tp. blocked users: |
1ms |
| others: | 251ms |
| total: | 538ms |

| 0 / 0 |
