Как дополнить dataset только обнавлениями в базе?
ты о нем информацию в dataset вычитываешь?
Во-вторых, если нет, то читал ли ты хелпу? Там много интересного написано:
The Fill operation then adds the rows to destination DataTable objects in the DataSet, creating the DataTable objects if they do not already exist. When creating DataTable objects, the Fill operation normally creates only column name metadata. However, if the MissingSchemaAction property is set to AddWithKey, appropriate primary keys and constraints are also created.
If the SelectCommand returns the results of an OUTER JOIN, the DataAdapter does not set a PrimaryKey value for the resulting DataTable. You must explicitly define the primary key to ensure that duplicate rows are resolved correctly. For more information, see Defining a Primary Key for a Table.
![](/images/graemlins/smile.gif)
Ну и еще что бы темы не плодить, как можно сделать что бы датагрид реагировал на двойной клик? То есть реанирует только область вокруг таблицы, а сама таблица нет.
Тсенкс.
Оставить комментарий
timefim
Вообще странно вроде же dataAdapter.Fill(dataSet,name) должна так делать по умолчанию, но почему то оно плюсует всю инфу. Тоесть в базе 3 строки,и fill постоянно их прибавляет