woj-mar

woj-mar

  • NA
  • 4
  • 0

DataGrid problem

Jan 26 2005 9:01 AM
How i can refresh data to datagrid. Iam use Insert funcition to sql server but datagrid doesnt refresh when i close apllication, and run it again, then datagrid is fill correct with new data. I use realtions and i need to use DataViewMenager This is a sample of code: DataSet ds=fnGetDataSet(); DataViewMenager dvm=fnGetViewMenager(); CurrencyMenager cmWindykacja=(CurrencyManager)this.BindingContext[dvm,"table"]; this.dataGrid.DataSource=dvm; this.dataGrid.DataMember="table.SecondTableRelation";

Answers (1)