Re: Org Charts in .NET/WPF?
Try the 'tree' layout in graph# on graphsharp.codeplex.com Sent from my iPhone On 10/09/2010, at 4:10 PM, Dylan Tusler wrote: > __ > > > Has anyone done any dynamic Org Chart work in WPF or Silverlight/ASP.NET? > > I'm wondering if there are any resources out there already worth > investigating. > > Dylan Tusler. > > > To find out more about the Sunshine Coast Regional Council, visit your local > office at Caloundra, Maroochydore, Nambour or Tewantin or visit us online at > www.sunshinecoast.qld.gov.au. If correspondence includes personal > information, please refer to Council's Privacy Policy. > This email and any attachments are confidential and only for the use of the > addressee. If you have received this email in error you are requested to > notify the sender by return email or contact council on 1300 00 7272 and are > prohibited from forwarding, printing, copying or using it in anyway, in whole > or part. Please note that some council staff utilise Blackberry devices, > which results in information being transmitted overseas prior to delivery of > any communication to the device. In sending an email to Council you are > agreeing that the content of your email may be transmitted overseas. > Any views expressed in this email are the author's, except where the email > makes it clear otherwise. The unauthorised publication of an email and any > attachments generated for the official functions of council is strictly > prohibited. Please note that council is subject to the Right to Information > Act 2009 (Qld) and Information Privacy Act 2009 (Qld).
Org Charts in .NET/WPF?
-- Has anyone done any dynamic Org Chart work in WPF or Silverlight/ASP.NET? I'm wondering if there are any resources out there already worth investigating. Dylan Tusler. - To find out more about the Sunshine Coast Regional Council, visit your local office at Caloundra, Maroochydore, Nambour or Tewantin or visit us online at www.sunshinecoast.qld.gov.au. If correspondence includes personal information, please refer to Council's Privacy Policy at http://www.sunshinecoast.qld.gov.au . This email and any attachments are confidential and only for the use of the addressee. If you have received this email in error you are requested to notify the sender by return email or contact council on 1300 00 7272 and are prohibited from forwarding, printing, copying or using it in anyway, in whole or part. Please note that some council staff utilise Blackberry devices, which results in information being transmitted overseas prior to delivery of any communication to the device. In sending an email to Council you are agreeing that the content of your email may be transmitted overseas. Any views expressed in this email are the author's, except where the email makes it clear otherwise. The unauthorised publication of an email and any attachments generated for the official functions of council is strictly prohibited. Please note that council is subject to the Right to Information Act 2009 (Qld) and Information Privacy Act 2009 (Qld).
RE: DataGridView CheckBoxColumn problem (SOLVED)
>Here is the code that does the trick for me. Your code has overloads and properties that are not available to me, but after adjusting it to compile, IT WORKS! I tried code very similar to yours in my experiments, but I don't think I actually extracted the cell value, flipped it and set it again like you do. Jeez I must have been close. Thanks for pointing me in the right direction after such a long period of hopelessness on this. My code is below and you will that I check for the correct row and column along with some other subtle differences. Thanks heaps, Greg /// /// This handler is a workaround for a problem where the CheckBox column cell in the /// top row (top row only!) will not respond to mouse clicks and change state. /// private void gridRU_MouseUp(object sender, MouseEventArgs e) { DataGridView.HitTestInfo hti = gridRU.HitTest(e.X, e.Y); if ((hti.Type == DataGridViewHitTestType.Cell) && (hti.RowIndex == 0)) { DataGridViewColumn col = gridRU.Columns[hti.ColumnIndex]; if (col.Name == colSelected.Name) { DataGridViewCell cell = gridRU.Rows[hti.RowIndex].Cells[hti.ColumnIndex]; bool selected = (bool)cell.Value; cell.Value = !selected; gridRU.EndEdit(); gridRU.InvalidateRow(hti.RowIndex); } } } private void MyDataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { DataGrid senderGrid = sender as DataGrid; DataGrid.HitTestInfo hti = senderGrid.HitTest(e.X, e.Y); if (hti.Type == DataGrid.HitTestType.Cell && "check here that the right cell has been clicked") { bool itemChecked = !(bool) senderGrid[hti.Row, hti.Column]; senderGrid[hti.Row, hti.Column] = itemChecked; senderGrid.EndEdit(MyDataGrid.TableStyles[0].GridColumnStyles[hti.Column], hti.Row, false); senderGrid.Refresh(); } }
Re: DataGridView CheckBoxColumn problem
Greg, Here is the code that does the trick for me. private void MyDataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { DataGrid senderGrid = sender as DataGrid; DataGrid.HitTestInfo hti = senderGrid.HitTest(e.X, e.Y); if (hti.Type == DataGrid.HitTestType.Cell && "check here that the right cell has been clicked") { bool itemChecked = !(bool) senderGrid[hti.Row, hti.Column]; senderGrid[hti.Row, hti.Column] = itemChecked; senderGrid.EndEdit(MyDataGrid.TableStyles[0].GridColumnStyles[hti.Column], hti.Row, false); senderGrid.Refresh(); } } Girish On Thu, Sep 9, 2010 at 11:54 PM, Greg Keogh wrote: > Ian et al, I have officially given up on this issue. I’m defeated and I > told the customer that it would waste money if I kept researching it. > > > > I could replace the CheckBox column with my own bound column type that > draws itself to make some kind of mock CheckBox, but that would take hours > of work. I told the customer to tell his staff that the workaround is to > press the Enter key on the offending cell on the top row. It’s stupid but > it’s easy and it works. > > > > This reminds me of the other intermitted “bug” in grids that I create where > pressing the Esc key on validation failed cell value doesn’t restore the > previous value. I’ve spent hours of my life over the years trying to track > this one down without success. Luckily it happens rarely now, and I detect > it early and delete the whole control and make a fresh one and it usually > comes good. Go figure! > > > > I’ll be migrating to WPF grids more in the future, so I’ll probably run > into a whole new suite of weirdness and roadblocks. > > > > If I ever find the answer to this I’ll let you know. > > > > Greg >
RE: DataGridView CheckBoxColumn problem
Ian et al, I have officially given up on this issue. I'm defeated and I told the customer that it would waste money if I kept researching it. I could replace the CheckBox column with my own bound column type that draws itself to make some kind of mock CheckBox, but that would take hours of work. I told the customer to tell his staff that the workaround is to press the Enter key on the offending cell on the top row. It's stupid but it's easy and it works. This reminds me of the other intermitted "bug" in grids that I create where pressing the Esc key on validation failed cell value doesn't restore the previous value. I've spent hours of my life over the years trying to track this one down without success. Luckily it happens rarely now, and I detect it early and delete the whole control and make a fresh one and it usually comes good. Go figure! I'll be migrating to WPF grids more in the future, so I'll probably run into a whole new suite of weirdness and roadblocks. If I ever find the answer to this I'll let you know. Greg
Re: [SQL Question] Creating a computed field on a table on insert
On 9 September 2010 13:53, silky wrote: > On Thu, Sep 9, 2010 at 1:50 PM, David Connors wrote: > > On 9 September 2010 13:49, silky wrote: > > > > > > Okay. > > > > > > Thank you for clarifying. > > > > Who are you and what have you done with Silky? > > It's obvious that I don't care about your opinion, right? :P I mean, I > figure unbridled arrogance is encoded into the word "silky" now. > Didn't want to double-up on a statement I can make using only the > "from" address of this email account :) > > > I'd like to see some bridled arrogance... > > -- > > David Connors | da...@codify.com | www.codify.com > > Software Engineer > > Codify Pty Ltd > > Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417 > > 189 363 > > V-Card: https://www.codify.com/cards/davidconnors > > Address Info: https://www.codify.com/contact > > -- > silky > > http://dnoondt.wordpress.com/ > > "Every morning when I wake up, I experience an exquisite joy — the joy > of being this signature." > -- Meski "Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough" - Adam Hills
RE: argument style, was Re: Access Database Replication
hundreds? influential? worldwide? (apologies for all those questionmarks, to whomever was commenting on them t'other day It pleases me to imagine this is true – Greg