|
I think you are using any third party data grid. I was talking about the Dot net DataGrid in Visual Studio 2003. there isnt any property like you mentioned.
please have a look and let me know if I am missing any thing.
regards
|
|
|
|
|
There are two ways to do it.
(1) Create custom table style. And dont add DataGridTextBoxColumn for the columns you dont want to display.
http://www.codeproject.com/cs/miscctrl/noogenwinforms.asp
(2) You can use your DataSet's ColumnMapping property to hide a column.
// Creating connection and command sting
string conStr = @"Provider=Microsoft.JET.OLEDB.4.0;data source=C:\northwind.mdb";
string sqlStr = "SELECT * FROM Employees";
// Create connection object
OleDbConnection conn = new OleDbConnection(conStr);
// Create data adapter object
OleDbDataAdapter da = new OleDbDataAdapter(sqlStr,conn);
// Create a dataset object and fill with data using data adapter's Fill method
DataSet ds = new DataSet();
da.Fill(ds, "Employees");
// Hide the column and attach dataset's DefaultView to the datagrid control
ds.Tables["Employees"].Columns["LastName"].ColumnMapping = MappingType.Hidden;
dataGrid1.DataSource = ds.Tables["Employees"];
|
|
|
|
|
Hi,
Im not using any third party its part of the C# .net datagrid controls.
Please follow this link, it has everything you need to know about datagrid.
DataGird Girl[^]
Hope this would help you.
Good Luck.
|
|
|
|
|
Hi.. sorry if this is counted as a double loop.
My situation is i wanna seen a string though serial but with the enter key..<cr>
but right now is i sent use what i type in a textbox(words i type +enter key)
then click sent..
the send button is open()-> write () read () then close().
so how guys..
secondly i have another.. problem..
the program is link to a PLC and whenevrer i sent a order command using series, it wil reply me.. but the problem is i only reply some time.. even with e same command..
What can be the pro?
or should i start a thread just for listening?
private void btnSent_Click(object sender, System.EventArgs e)<br />
{ <br />
line.Open(); <br />
<br />
string SentString = txtbox.Text ; <br />
ArrayByte_Data = new byte[SentString.Length];<br />
for( int i = 0; i < SentString.Length; i++ )<br />
{<br />
ArrayByte_Data[i] = Convert.ToByte(SentString[i]);<br />
<br />
}<br />
line.Write(ArrayByte_Data); <br />
<br />
string ReplyString;<br />
ReplyString = Encoding.ASCII.GetString(line.Read(10));<br />
txtStatus.Text=ReplyString;<br />
line.Close();<br />
<br />
<br />
}
this is my send code..
pls advice
|
|
|
|
|
i am working with c#.net Console application.
i m using the following code snippet
NavigateDocumnet()
{
object o = null;
// some code here
// Every time "NavgateFile" value is changed"
m_WebBrowser.Navigate(NavigateFile,ref o,ref o,ref o,ref o);//problem is here
// some code here
NavigateDocument(); // Recursive funtion
}
in Document_Completed
{
mshtml.IHTMLDocument2 doc=(mshtml.IHTMLDocument2)m_IExplorer.Document;
mshtml.IHTMLElement BodyElement=doc.body;
//Retrieve all Text from Body Tag
string BodyText=BodyElement.innerText;
// writing text into file
}
Now my problem is that every time when m_WebBrowser.Navigate(NavigateFile,ref o,ref o,ref o,ref o) is called it did not wait for document complete. it called continuesly without wait for document complete. for example if Recursive loop call 10 time. documnet complete is called only 2 or 3 times. first time it called for 1 page after that it skip some address and then it called for 5 0r 6 page and then so on........
i want every when m_WebBrowser.Navigate(NavigateFile,ref o,ref o,ref o,ref o) is called it wait for document complete and then Navigate another address and so on.......
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
I got a question for you, why you using webbrowser control in C# console applicaion?
- ashish
|
|
|
|
|
Sorry its not a Web Browser Control . Its internet Explorer . i used the following coding
m_IExplorer = new SHDocVw.InternetExplorer()
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
For what you are using Internet explorer from Console Application?
- ashish
|
|
|
|
|
Could someone please tell me how to convert existing form data(say data in a textbox) into XML on the basis of a already created XSD. Basically how do you associate an XSD to u're C# code.
|
|
|
|
|
|
How do i charge credit cards for like a resturant program?
|
|
|
|
|
|
you need to create a vendor account with service provider like Verisign. they will provide you few APIs using which you will be able to charge customers through creditcard.
It is recomended that you use SSL for communication and do not store credit card details. If you are really interested in saving details, do encrypt before you save.
- ashish
|
|
|
|
|
I have 2 Applications say App A and App B
App A is Offline and App B is online coded in ASP,COM+
App A has to download some data from the Database
I have a function written in webservice (Login)
Here i will have to get the sessionid from the server also I will have to check whether App A has windows Authentication or Anonymous Login and then I will have to download. How will i write the functionality for Windows Authentication or anonymous login in the Webservice Login Function
pavan
|
|
|
|
|
|
How does output caching work in ASP.NET?
|
|
|
|
|
|
What is serialization, how it works in .NET?
|
|
|
|
|
|
Serialization is used to save the state of the object. You can save the state, i.e. can serialize to XML format or to Binary format.
In case of Binary format you can deserialize and invoke the methods. In case of XML deserilization, you will be able to access only public properties.
hope this information helps you...
can explore MSDN for more
- ashish
|
|
|
|
|
Hi,
I am writing a networking application in C#.
The application transfer data of a few MegaBytes.
Initially, the application takes up about 10MB,
then after the network data transfer for about 6MB,
the memory usage (info from the taskManager) is about
100-200MB !!! So what is the reason for the application take
up so many memory ? And how can I solve the problem. It seems
that .Net application is a big memory eater !
Thanks
|
|
|
|
|
There can be all sorts of reasons for memory usage. The main one is, if you create a variable that impliments IDisposable, you should use a using block to ensure the memory is cleaned up right away.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Try to use a reasonable buffer when transfering data from your file to the network. It's simpler to just read the whole file into a single array and then write it out, even though that is probably the worst for memory use. Just because memory is managed, doesn't mean it takes up less space.
Also, in windows memory is assigned different uses. Most of the memory you are seeing will probably be released if other applications need the memory. You can usually see this effect if you minimize a .net forms application.
I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
|
|
|
|
|
If you create many large objects, they will stay in memory until they are garbage collected even though you have dropped the reference to them.
These might apply:
If you are using a buffer, try to reuse it instead of creating a new buffer for each data block.
If you are concatenating strings, use a stringbuilder instead of the += operator of the string class. Strings are immutable, so eventhough the += operator gives the impression that the string is just appended with the new data, a completely new string is created and the data from the two strings are copied into it.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I am writing an client-server application with networking in c#.
For the client part, I am using a synchronous network connection, that is,
when the client request the server, all the client features will be
hanged until the server response. So is it a common strategy in
implement client ? I am considering using threading or asynchronous
network connection, but it seem too complex and hard to maintain
the user logic. So any other good methodology to handle the problem ?
Thanks
|
|
|
|