datagrid invoke and tablestyles
-
how do i bind tablestyle back to datatable after datagrid invoke. when im updating datagrid with invoke .. private void UpdateGrid(DataSet table) { dataGrid1.DataSource=table.Tables["data"]; } dataGrid1.Invoke(new UpdateGridCallback(this.UpdateGrid), new object[]{some_data_set}); ..i lose datagrid style which is already defined. bye -- modified at 3:56 Friday 23rd September, 2005
-
how do i bind tablestyle back to datatable after datagrid invoke. when im updating datagrid with invoke .. private void UpdateGrid(DataSet table) { dataGrid1.DataSource=table.Tables["data"]; } dataGrid1.Invoke(new UpdateGridCallback(this.UpdateGrid), new object[]{some_data_set}); ..i lose datagrid style which is already defined. bye -- modified at 3:56 Friday 23rd September, 2005
Through
DataGrid.TableStyles
proerty you will get the table style which you assigned to the Datagrid. :-D Sreejith Nair [ My Articles ] -
Through
DataGrid.TableStyles
proerty you will get the table style which you assigned to the Datagrid. :-D Sreejith Nair [ My Articles ] -
ok i solved that, but what if i invoke more times. First time its working ok, when i do it second time, datagrid get screwed and starts to blink. im trying to use threads to update datagrid form dataset. and suggestions
You try to assign the Table style property to
null
, then try to assign the second required table stayle property.:-D Sreejith Nair [ My Articles ] -
You try to assign the Table style property to
null
, then try to assign the second required table stayle property.:-D Sreejith Nair [ My Articles ]hi, i dont know if this is still a question of table styles, look what i get first invoke ..ok invoke again ??? hope to hear from you again bye rado.