1
Answer

DataGrid problem

woj-mar

woj-mar

19y
2.3k
1
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)