Anyone know how to format the columns on a flexigrid?
http://turbogears.org/2.0/docs/main/ToscaWidgets/Cookbook/FlexiGrid.html
the colModel doesn't seen to have any formatting params
I want to do simple things like format my date col with "{0:dd MMM yyyy}"
...
I was just wondering if this would be to many layers of indirection?
I try and do a little bit of explaining, the idea is that I am building a API over the top of a COM object which only exposes Do and Eval methods.
Previously I have just passed a IComObject into the Table class and work directly against that however that means when ...
Hi,
the following linq statement returns a IOrderedEnumerable:
var list = from e in ritorno.Elements("dossier")
orderby e.Element("name")
select e;
How can i convert list to XElement?
Thanks
EDIT
list is IOrderedEnumerable<System.Xml.Linq.XElement>
...
I just wonder - if I need to deploy an assembly into the GAC, what is the "official" way of doing it?
Currently we either manually drag/drop into the c:\windows\assembly folder or we use gacutil.exe. The first way is obviously not the good one (it's manual process after all), and gacutil is part of the SDK and not available per default ...
Hi,
I want to set a session timeout of 30 seconds.
To do so I wrote:
<wsHttpBinding>
<binding name="ServicesBindings">
<security mode="Message">
<message clientCredentialType="Certificate"/>
</security>
<reliableSession enabled="true" inactivityTimeout="00:00:30"/>
</binding>
</wsHttpBinding>
But ...
Hi everyone.
I'm having a bit of trouble getting Visual Studio to play nicely with my Axis2 web service. The problem is very strange, although not a show stopper. If anything it is just annoying, and I'd really appreciate a way around this.
The problem is that when using the web service in C# code, none of the parameters or return valu...
I wan't to customize the icon displayed within the windows 7 taskbar.
When my app is running, I can do it by changing main window icon but, when the app is pinned, the exe's icon is displayed.
How can I set the taskbar icon for my app to an icon different from the one embedded within the exe ?
Not tried, this solution may work but look...
Hi..
i am studying .Net Remoting
i read from MSDN. but in one step i am facing some confusion..
three steps are required for remoting purpose.
1 - RemoteObject
2 - Host
3 - Client
creating RemoteObject and Host is fine. i understand all the things. it uses Configuration File for both Host and Client Configuration. in Client it uses...
I'm trying to get access to certain parts of my application through COM, mainly because I need a Delphi application to be able to invoke certain services on the .NET application.
I've managed to expose some methods via COM inheriting from ServicedComponent class and its working fine.
Now I need to be able to raise events to the client...
The code previously implemented takes in the xls file saves it on to a column in a table using the stream i use the same method but the only change is the the file saved is a xlsm or an xlsx type file it saves to the column in the database
When I try and get the contents from the database and throw the saved xlsm file or xlsx file I get...
Hi,
I have seen an addin (3rd party tool) in Visual Studio .Net 2003 to display dataset(Dataset Visualizer) while debugging mode.
Now this feature is available as a bultin in Visual studio 2005.
This is really a helpful addin for VS2003 where it made the debugging task easy.But i was unaware of such tools till i found someone using i...
C#: How do you check if the mouse click position was only inside an item in Column[0] in a listview under virtualmode?
I can get the the Item object the mouse just clicked using ListView.GetItemAt, but after that, how could I check if it was clicked within column[0]?
...
Hi,
I have a very simple application which currently has a single Linq to Sql class based on a single table.
I need to serialize (to XML) all rows in the table using the DataContext for the Linq To Sql class.
How do I go about doing this?
This is my current code :
var db = new MyEntityDataContext();
Stream fs = new FileStrea...
Hi, I want to extract data from PowerPoint slides and then paste them into
Excel workbook, where each slide in PowerPoint corresponds to a sheet in
Excel workbook and vice-versa (from Excel to PowerPoint).
How do I do this? I extracted the data PowerPoint but now how do I make it
send to data to Excel? What options/possibilities do I ha...
In the application I am working with, if the user changes the value in a cell that is say positive to negative and the value is supposed to be positive at all times, the application forces the positive value. Right now, when this happens there is no alert shown to the user.
I would like to show a little unobtrusive alert, like the one ...
I use Silverlight Business Application (Application with RIA Services). Create new project. All setting by default.Compile and run it. In application I create new user. It's all right.
Then I add a chackbox to LoginWindow.xaml:
<CheckBox x:Name="isPersistent" Content="Remember me"/>
and modify LoginButton_Click method.
private v...
In C# the concept of Multidimension arrays are pretty cool. But I don't understand when to use them. Like in what type of applications does this concept is used.
...
Take the code below, adapted from this question:
//Borrowed from another question because its a simpler example of what happened to me.
IEnumerable<char> query = "Not what you might expect";
foreach(char vowel in "aeiou")
{
query = query.Where(c => c != vowel);
}
foreach (char Output in query)
{
System.Out.WriteLine(Output);
}
...
Hello,
I am trying to create an object from an Active Directory base on a simple login. The problem is that some of the login information is valid.
How could I just use a try-catch so that if an exception is thrown, just skip to the next login?
Here is the code:
foreach (var PharosUserItem in ListRef)
{
ADUser User;
try
{...
I have an EntityObject named Pathway which relates directly to data in the pathway table. My database also stores rules for Pathway customisations. What I would like to do is create a Pathway object in my code that is the resultant of the Pathway + PathwayCustomisations. The resultant should never find it's way back to the database, it i...