Re: DataGrid Performance in Beta 2



help !!!!

sambarbas@xxxxxxxxx a écrit :

> Hi,
>
> I've noticed a big performance difference between 1.1 and beta 2.0 when
> binding a datasource with a datagrid.
>
> try this code on the 2 frameworks (a simple winform)
>
> private void Form1_Load(object sender, EventArgs e)
> {
> DataSet ds = new DataSet();
>
> int debut = 0;
>
> debut = Environment.TickCount;
> ds.ReadXmlSchema(@"D:\clients.xsd");
> ds.ReadXml(@"D:\clients100000.xml");
> Debug.WriteLine("XML = " + (Environment.TickCount - debut));
>
> debut = Environment.TickCount;
>
> dataGridView1.DataSource = ds.Tables[0];
>
> int dureeAff = (Environment.TickCount - debut);
> Debug.WriteLine("DataGrid : " + dureeAff);
> MessageBox.Show("DataGrid : " + dureeAff);
> }
>
> My XML file contains 100000 records.
>
> 2.0 is better in parsing XML (4 sec against 14 sec on 1.1)
> 2.0 is very bad when binding datagrid (10 sec against 0.6 sec on 1.1)
>
> i knew that xml parsing was optimized in latest version, but why
> databinding is so long ??????
>
> will it be fixed in final ?
>
> bye

.



Relevant Pages

  • RE: wpf xml twoway data binding problem?
    ... When using the TwoWay binding mode, data binding does update the data in ... the XmlDataProvider if the bound TextBox's text is changed. ... To save changes back to the local xml file, ... You can do this work in the TextChanged event ...
    (microsoft.public.dotnet.general)
  • Re: datagrid update command
    ... > -i updated the dataset with the str and i wrote the dataset to xml file ... > -i used the debugger to watch str and the same result here ... i have to update the datasource with the dataset every time i need ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: XML DATA source DataSetDataSource DataMemeber
    ... "DataList" objects, which have a property named "DataSource", but I don't ... I'm also not sure what you mean when you say that your XML file has DataSets ... (ArrayLists implement IEnumerable. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Looking for a better solution
    ... Zuzar L. ... I have a web application where i am reading data into a Dataset from a *.xml file and binding it to a datagrid so i can edit it in the web form. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Looking for a better solution
    ... I have a web application where i am reading data into a Dataset from a *.xml file and binding it to a datagrid so i can edit it in the web form. ...
    (microsoft.public.dotnet.framework.aspnet)