I use selected row data of dataGrid to load data into textboxes
When I select the first row of the dataGrid no data is loaded into the textboxes
But when I select any other row, it’s data is loaded to the textboxes, then the first row can be loaed too...!!!!?
If any one knows the reason why the first row don't load until i select any other row at first, I’ll be grateful
How are you loading the data into the textboxes? If you're handling the rowEnter event, I don't believe its raised on the form/page load. Try going to any other row, then back to the first and see if it loads. If that's so, you may have to either just manually enter the data into the columns the first time, or use a different event.
As another option, look into databinding. There are a couple WONDERFUL articles on it here at codeproject that you can search for.
DataTable.Clear() really clears all the rows from the memory r just changes the status of the rows?
If it does not clear which is the best method to use to clear the DataTable rows from the memory.
I want to show a Power Point presentation file from my C# application. Does anyone know how to do that, without having the program Power Point installed on the locale machine? I think of a COM-component maybe?
Now i have one dll for that.
But i hae no idea to operat it.
We know less than you do. You, at least, have the DLL and can put it thought something like Reflector to see what it is doing.
However, the question I have is: Why don't you read the documentation that came with this dll?
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
i'm currently working on a project following the concept of Float's Mobile Agent - where you can control a sony ericsson phone (t610) from a PC via Bluetooth. i was hoping if anyone can help me code in C# on how to do the same on either a Nokia 6600 or P800 (both Symbian-operated). i'm thinking of using Java as a middleware too. i would really appreciate your help ^_^
I like to retrieve MAC addresses arround my network without the use of SendARP. The network is huge and contains a lot of subnets. Since ARP doesn't go to other subnets I need to find another method.
Programs like nbtstat -a <hostname> and getmac /s <hostname> do what they have to do. Altought I like to have it my program.
Another option is to use getmac /s <hostname> /fo csv and get the output. How do I manage that?
I don't want to use WMI to retrieve the MAC address.
I am interested in a way, using the .NET Framework classes, to obtain a MAC address based on an IP number. Knowing an IP number, I need to know to extrapolate the MAC address. How can this be done with the .NET Framework and C#? I know that the MAC is not in the Request object, I need some guidance on getting the MAC *after* I have used the Request object to get the IP number. I have found some about using the "System.Management" Namespace already.
I'm assuming the machine running the function and the remote machine we are trying to obtain the physical address of are on the same network segment and are not separated by a firewall.
Any thoughts about a solution to the problem?
I´m trying to use the SQL Server 2005 Express in my C# 2005 Express Project and I´m getting nuts! In my project I created the Tables I need but know I really don´t know hoe to establish a connection and make select or insert statements?! In the learning Videos from microsoft the do everything with Databinding in the Designer but I have to leran how to make those things manually by code. In my Book about c# they use OleDBConnectio, OleDBDataReader and OleDBCommand to connect and work with an Access MDB. But I have to use SQL Server. In other examples I found they use DataAdapter...an I really don´t know what´s the correct way? Is there anywhere a simple example that shows how to connect to a local installed SQL Server and make a select statement, show the Data from the selectstatement in a grid or something else and make in insert into a table? Or can anyone show me how to do that? Normaly it´s not my way to ask such questions but I really become nuts and be doubt about my programming knowledge...
Yes, starting can be a bitch...
You can't say one choice is "the correct" way, because you can achieve what you want in many different ways.
You can use the OleDB* classes to communicate with a SQL Server just like you would with Access. The only thing that's different (in the beginning, at least) is the connection string you'll have to specify.
With an mdb file you just include datasource='...path to your file...', but that doesn't work with SQL server.
Since I can't remember all the parts of a connection string for a given database, I usually take a look at http://www.connectionstrings.com/[^] to find the correct connection string.
Everything else is just a matter of reading the class documentation...