Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c# doing a custom sort on a datatable -


i have data in datatable needs sorted on first column way:

a02 blank0010  d02 blank0007  b04 blank0011  g05 blank0012  c06 blank0014  e08 blank0013  f10 blank0016  h12 blank0015  b02 g112486    c02 g125259    e02 g125257    f02 g112492    g02 g125095    h02 g112489    a03 g125090    b03 g112499    c03 g125256    d03 g002007    e03 g112494    f03 g002005    g03 g112495    h03 g002008    a04 g115717    

if regular sort, sort this: a02, a03, a04. need a02, b02, c02... etc

how can this>? here code far:

dataview view = dt.defaultview; view.sort = "position";

you'll want custom sort. see following question hints: dataview.sort - more asc/desc (need custom sort)

you might want break first column 2 separate columns.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -