English 中文(简体)
问题与数据格
原标题:Problem with DataView Sort

我正试图从非行取数据,将非行装成价值。 后来 我正在根据姓名对表格中的数据进行分类,然后,我想把它与一张支票相加。

然而,在我试图使用下文编码所示数据级时,我看到显示数据时发生故障,一旦所有数据都分类,数据就会稳定。

如何清除浮油? 从这个意义上讲,我想对全部数据进行抽样调查,并一劳永逸地展示所有数据?

myReader = cmd.ExecuteReader();

while (myReader.Read())
{
myTableForCBL.Rows.Add(myReader["Name"],myReader["rollNumber"]);
}
DataView view = myTableForCBL.DefaultView;
view.Sort = "Name";
checkedListBox1.DataSource = myTableForCBL; //datatable for checked list box
checkedListBox1.DisplayMember = "Name";
checkedListBox1.ValueMember = "rollNumber";

最佳回答

这是因为我对数据是如何显示的,而不仅仅是数据本身。 因此,它浮标。 而不是这样,用数据表对数据进行分类

DataRow[] rows = DataTable.select(filterexpression, ile);

//make sure the filterexpression="", to select all rows else if you want certain rows, write a filterexpression that does the filtering. //sortVariable to be a column of the DataTable

之后,将浏览量进口到另一个温床和源头上,然后输入到带子。

然后,数据站的浮雕或闪光。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签