EDN Admin
Well-known member
Hi, good morning.<br/>
<br/>
Im trying to find a best way(with the best performance) to parse a Fix Protocol message.<br/>
Then I made some functions that return a value if I give a Fix Message and a Fix field. They work pretty well but I dont know if is the best way to do this.<br/>
See below:<br/>
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; using System;
<span style="color:Blue; using System.Collections.Generic;
<span style="color:Blue; using System.Linq;
<span style="color:Blue; using System.Text;
<
Hi,
I need this very badly.
I am using a datagridview for which the datasource is a dataview. This dataview is assigned with a datatable from database.
I am able to display the row numbers for the gridview by adding new column like shown below:
<span style="color:rgb(0, 0, 255) int rowcount = table1.Rows.Count;<br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) table1.Columns.Add(new DataColumn("SNO", typeof(int)));<br style="color:rgb(0, 0, 255) <br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) for (int i = 1; i <= rowcount; i++)<br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) {<br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) table1.Rows[i - 1]["SNO"] = i;<br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) }
<span style="color:rgb(0, 0, 0) But main problem arised when i sort any another colum , the "SNO" also gets sorted with row numbers not in proper order. Like if I sort by name then row numbers are displyed like 3,2,1 ..
Even when i use Dataviews row filter, only few columns are displayed with previous rownumbers. Suppose, after row filter we are left with only last two columns, then the Row numbers are displayed as 2,3 but 1 is missing because it was filtered in rowfilter.
But I want 1,2 to be displayed there.
Please can any one help. Thanks in Advance,
Sukanya.
View the full article
<br/>
Im trying to find a best way(with the best performance) to parse a Fix Protocol message.<br/>
Then I made some functions that return a value if I give a Fix Message and a Fix field. They work pretty well but I dont know if is the best way to do this.<br/>
See below:<br/>
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; using System;
<span style="color:Blue; using System.Collections.Generic;
<span style="color:Blue; using System.Linq;
<span style="color:Blue; using System.Text;
<
Hi,
I need this very badly.
I am using a datagridview for which the datasource is a dataview. This dataview is assigned with a datatable from database.
I am able to display the row numbers for the gridview by adding new column like shown below:
<span style="color:rgb(0, 0, 255) int rowcount = table1.Rows.Count;<br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) table1.Columns.Add(new DataColumn("SNO", typeof(int)));<br style="color:rgb(0, 0, 255) <br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) for (int i = 1; i <= rowcount; i++)<br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) {<br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) table1.Rows[i - 1]["SNO"] = i;<br style="color:rgb(0, 0, 255) <span style="color:rgb(0, 0, 255) }
<span style="color:rgb(0, 0, 0) But main problem arised when i sort any another colum , the "SNO" also gets sorted with row numbers not in proper order. Like if I sort by name then row numbers are displyed like 3,2,1 ..
Even when i use Dataviews row filter, only few columns are displayed with previous rownumbers. Suppose, after row filter we are left with only last two columns, then the Row numbers are displayed as 2,3 but 1 is missing because it was filtered in rowfilter.
But I want 1,2 to be displayed there.
Please can any one help. Thanks in Advance,
Sukanya.
View the full article