Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,160,802 members, 7,844,608 topics. Date: Thursday, 30 May 2024 at 01:09 AM |
Nairaland Forum / Lifeguru02's Profile / Lifeguru02's Posts
(1) (of 1 pages)
Programming / Re: Bind A Collection Of Dictionaries To A Grid by Lifeguru02: 1:49am On Jun 05, 2016 |
omosis2: i use dapfor.netgrid, check the codes below //Bind a collection of dictionaries to a grid answer List<object> collection = new List<object>(); collection.Add(new object[] { 10, 11.12, "some string 1" }); collection.Add(new object[] { 20, 21.33, "some string 2" }); grid.DataSource = collection; 1 Like |
Programming / Re: Headers With Grid by Lifeguru02: 6:25pm On May 30, 2016 |
johnievillie124: it’s very easy. Just follow the code below. Hope it helps. Header header1 = new Header(); header1.Add(new Column("Id1", "Column 1"); header1.Add(new Column("Id2", "Column 2"); Header header2 = Header.FromDataType(typeof(SomeClass)); grid.Headers.Add(header1); grid.Headers.Add(header2); |
Programming / Re: What Is Dock Row by Lifeguru02: 8:50pm On May 19, 2016 |
omosis2: I use dapfor wpf gridcontrol and when your row stay at the top and the bottom of your hierarchy, it is called docking of row. C# //Dock row to the bottom grid.Rows[8].Dock = RowDockStyle.Bottom; //Dock row to the top grid.Rows[9].Dock = RowDockStyle.Top; //Undock row grid.Rows[0].Dock = RowDockStyle.None; |
Programming / Re: Secondary Thread by Lifeguru02: 7:55pm On May 19, 2016 |
omosis2: you asked a beautiful question I am quite comfortable with. Anyway I use Dapfor grid running my program. This c# code will help you base on your question. C# System.Threading.Timer timer = new System.Threading.Timer(state => { Order order = _orders[random.Next(_orders.Count)]; order.Price = random.Next(50, 200) + random.NextDouble(); }, null, 0, 500); |
Programming / Column Visibility And Sequence by Lifeguru02: 7:52pm On May 19, 2016 |
which is the best way I can do column visibility and sequence to my grid. I am using dapfor wpf gridcontrol. |
(1) (of 1 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10 |