i don´t know how to set the columns headers name in c#, because i do it in sql.
But i bet it´s easy.
Now, are the data (to the datagridview) comming from sql database?
if right, write then there not in c#.
I added datagridview control to my form.
Then I edited columns through the property window in vs2005. So I added some column with names and columns header. I also defined the DataPropertyName of the column to the column which is in my
result table coming from a database table.So far so good.But I am also having the form in a different
language created with Localizable property of the form. In this second form I changed the column headers in design mode. What I expect is to see the localized column header when I change the form to
the localized version. All my other controls display their respective localized text but not gridview.
There are security issues with allowing services UI permissions like displaying forms. However, if this does not concern you and you have not done so already, you may be able to view the form via the service if you ensure you are using a local system account to start your service, and check the 'Allow Service to interact with desktop' check box in the log on properties of the service.
I think a better idea would be to have the UI separate from the service, and have the service communicate with the UI via a named pipe or...whatever...
I have written a class that creates a dynamic SSIS package using C#, all is fine and dandy with this, it correctly creates and executes the package and the data plops into the SQL database as expected.
The problem is that I now need to 'tag on' another static package to be executed at the end of this dynamic package. If you were writing the SSIS package you would do this with an 'Execute Package Task' in the BIDS UI but I need to do this in a web service using C# code.
I can't actually find anything on Google or Code Project that deals with this scenario, any links or ideas would be great.
I have created a dll in c# for crawling the documents from sharepoint and to get the modified date,created Date..etc..
When i run it from server where sharepoint is installed its getting the created date and modified Date....
But when i run it from client pc...It is giving Debug Error....
when i comment this code....which i used for getting created date and modified date...
the code is
using (SPSite RootSite = new SPSite(listPath))
//RootSite.AllowUnsafeUpdates = true;
Console.WriteLine("1Entered SPSIte path");
using (SPWeb SiteCollection = RootSite.OpenWeb())
string path = listPath;// RootSite.MakeFullUrl(PageName);
SPFile file = SiteCollection.GetFile(path);
string TimeCreated = file.TimeCreated.ToLongDateString();
Console.WriteLine("1.1: Created Date is :" + TimeCreated);
when i comment this code it works fine....is there any problem in it...but the same code works fine in server pc...I am totally confused..please give some idea......I am totally new to sharepoint and c#
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
I have set the timer1.enabled = true
and timer1.interval = 10000 --> represents 10 seconds
It seems the timer tick event does not get fired in windows service.
I have tried placing other timers and they seem to have the same issue.
When I use the timers on a form, they seem to work fine.
Is there anything I should do inside the windows service so that the tick event of the timer is fired?
I am using a timer inside a Windows Service with no problem. I do use the Timer Start() and Stop() methods, but I would expect that enabling and disabling would work just fine. Have you checked the event viewer to ensure there are no errors being generated by the service that might explain this problem?