|
hi,
i think you can do that by integrating through the DataMember property of the dataGrid ofcourse after assigning the data source for the data grid.
you can do so in the properties panel of the DataGrid.
hope it helps
good luck
|
|
|
|
|
Hi,
Thats exactly how i have it although not in the property panel of the datagrid.
I've used DataMember twice, but that caused an error which closed the program.
|
|
|
|
|
|
Hi,
Its in dutch i'll try to translate it...
"Cannot create an underlying list for field price".
|
|
|
|
|
DataSet xmlDoc = new DataSet();
xmlDoc.ReadXml(path);
<code>xmlDoc.Tables["book"].Columns.Remove("timeProduced");</code>
this.grdSmsHistory.DataSource = xmlDoc;
this.grdSmsHistory.DataMember = "book";
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Hi,
Thank you very much EricDV!
|
|
|
|
|
Hi
i have created a C# DLL in VS2003 and installed it in GAC with WISE installer which actually register the dll in gac and add registry key.
i am calling this dll from vbscript by using createobject method when
i first time installed the dll and access it from script it works fine
but when i change the version number after some updates in the code and install it again its not working
in event log its giving the error for Invalid class string when i call it from vbscript.
i even remove the previous version before new installation and restart my pc.
this happen for all the dlls i m working they all work first time same error after new version of dll
But if i change the ProgId its start working again.
the problem is i dont want to change Progid every time i create new version.
Any help
thanks...alot
Nav.
Nav.
|
|
|
|
|
Hi all,
If i have selected the last item in the listview... example the index is 3 that means it is the fourth item, right... if i delete this item... and refresh the listview, i get an error that says: "InvalidArgument=Value of '3' is not valid for index. Parameter name: index". I think this is because it tries to select the deleted item again as this was the last item selected before the delete and refresh. How do i clear the index as so that there is no selected item?
Thank you in advance...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
After deleting the item from the listview, are you using the index property somewhere?
Because when you delete the item from the listview, its value from the selectedindices collection is also deleted.
Check once?
|
|
|
|
|
System.Windows.Forms.ItemCheckEventArgs e
to delete the item from the arry we have:
_myArrayList.RemoveAt(e.Index);
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
After we removed the item from the arraylist... we clear the items from the listview and for each entry in the arraylist we add into the listview...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Hi genius,
Nice to meet you here!
When developing BI programs with SQL Server 2005, I got this problem:
Users want the report should be exported in office excel 2003 format, and stored in PIVOT TABLE.
We have decided to use OLAP tech in SSAS(SQL Server2005 Analysis Services) to generate cubes.
If we just use excel as a client tool, and create a pivot table which connects to the cube database, it's ok.
But, the users want to download the excel file from a web page, further more , they want to filter the data through the web page.
How can I do?
Help inline.
Thank you!
|
|
|
|
|
Hi everyone,
I'm sure i've read everything i can find on the web about CurrencyManager and Databinding and I still can't find a (good) answer to a really annoying problem.
I've solved the problem enough to get development moving again but the hack breaks every law of OO programming known to man and i'm sure will cause other problems for me down the line.
I'm trying to raise an event from a collection class that has its data updated by a class that sits monitoring some web services on a background thread. This collection is bound to a DataGridView. When data arrive in the collection class it raises a ListChanged Event. I then get the delightful cross-threading... error. I've tried inspecting the ListChanged.Target and it's a CurrencyManager Object. I've looked at the CurrencyManager object on MSDN and it has no Invoke method. I thought cool it's got a bindings collection, one of those will be a control and i'll invoke against that, this seemed to make sense until i realised that there were 0 items in the bindings collection.
My truly filthy hack is to pass a control from the UI into the monitoring class. This is obviously very wrong as this class should know nothing about the objects connected to it.
Does anyone know how to find a control given a CurrencyManager, why i don't appear to have any items in the bindings collection or how i can get my event to fire on the UI thread by any other means.
Thanks in advance,
Russell
|
|
|
|
|
Hi Everybody,
I have a multi-column listbox.
I need to change the width of the listbox,
based on the string length. I've written
the code in a function 'ResetLBWidth'.
This function should get called whenever I add a
string to the list box. How can I handle this?
I don't find any event like "NewItemAdded"..
Suggest me a path to achieve this.
Thanks in advance,
Sarvan AL
|
|
|
|
|
There is no any event like "NewItemAdded" for listbox.
If you are mannually filling the listbox then the whole control is in your hand. You can call the method ResetLBWidth where you are adding the data to listbox.
If you have assigned some data source to the list box and your data source is changing then you have DataSourceChanged event to map.
|
|
|
|
|
There is an event called TextChanged that rises whenever the text changes in the textbox. Meaning it will rises if u delete a character, add a character, replace a charachter .......
good luck
|
|
|
|
|
Hello,
I would like to know if it's possible (and how) to get the free memory (RAM).
I searched in google and here on the forum but had no luck so far. (It's also quit difficult to search for "free memory" )
Thanks for youre time and help,
Martin
|
|
|
|
|
That's hardware, and hardware isnt downloadable
|
|
|
|
|
Hello,
Anton Afanasyev wrote: That's hardware, and hardware isnt downloadable
Sorry but I don't even understand that joke?
Maybe you can help next time.
|
|
|
|
|
gaaaah whats with people and no sense of humour. hmm, maybe its due to me having to be in bed by now...
anyways, what i mean was that you were asking where you could get free RAM, and searching in google didnt help. as in, nobody willing to give you free ram.
/me holds up "LAUGH NOW" sign...
|
|
|
|
|
If it makes youre day better, I send you:
Anton Afanasyev wrote: whats with people and no sense of humour
Maybe humor like that makes more fun if it is posted togetter with a real answer!
All the best,
Martin
|
|
|
|
|
The sad thing is, I replied to what I thought he meant...then later, adapted that answer to the situation. heh.I guess I deserved those 1 votes.
|
|
|
|
|
Yes, I guess it's possible using SDK Memory related API's.
Can't recall the exact API's though (had used them some 5yrs back ), try finding them on MSDN.
Hummm .... can recall of one called "GetSystemInfo" which returns info about current system.
Good luck !!
Regards,
Bhupi Bhai.
|
|
|
|
|
Thanks very much in advance!
I'll give it a try (GetSystemInfo in kernel32.dll)!
Martin
|
|
|
|
|
Hello,
Had no luck with that.
GetSystemInfo returns a:
[StructLayout(LayoutKind.Sequential)]
class SYSTEM_INFO
{
public ushort wProcessorArchitecture;
public ushort wReserved;
public uint dwPageSize;
public IntPtr lpMinimumApplicationAddress;
public IntPtr lpMaximumApplicationAddress;
public IntPtr dwActiveProcessorMask;
public uint dwNumberOfProcessors;
public uint dwProcessorType;
public uint dwAllocationGranularity;
public ushort wProcessorLevel;
public ushort wProcessorRevision;
}
I implemented it like that:
[DllImport("kernel32.dll", CharSet = CharSet.Unicode,CallingConvention = CallingConvention.Winapi, EntryPoint = "GetSystemInfo")]
private static extern void GetSystemInfo([In,MarshalAs(UnmanagedType.LPStruct)]SYSTEM_INFO pSysInfo);
And called it like that:
SYSTEM_INFO sysinfo = new SYSTEM_INFO();
GetSystemInfo(sysinfo);
But I didn't found a member that fits me needs
If I made something wrong, please let me know.
But again thanks for youre time.
Martin
|
|
|
|