|
make that column read only..
some thing like this
<asp:boundfield headertext="ID" datafield="MasterId" sortexpression="MasterId" readonly="True">
abhinav
|
|
|
|
|
sorry some problem with the post
here it is:
<asp:BoundField HeaderText="ID" DataField="MasterId" SortExpression="MasterId" ReadOnly="True" />
in the html view of the grid, on that column add this attribute
-- modified at 6:48 Monday 7th August, 2006
abhinav
|
|
|
|
|
My question remains still there..
how ?
Ahmed
|
|
|
|
|
i have modified the post please check it bro.
abhinav
|
|
|
|
|
Thanks for the reply,
i just forgot to tell that i am woking on Winforms not ASP.Net..
how would be do it in Winforms.. ???
Thanks...
Ahmed
|
|
|
|
|
Hi all,
I would like to know what is the difference between those 2 methods: Int32.Parse() and Convert.ToInt32().
Also, in your opinion, which method shall we use to convert a string to an integer and why?
Thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
I would use Int32.TryParse as it deals with strings that are poorly formatted ( are not just numbers )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for the info, I didn't know about this TryParse method
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
That works only in VS2005, not in VS2003.
|
|
|
|
|
stancrm wrote: That works only in VS2005, not in VS2003.
You can also use TryParse on a double and set its options accordingly so that it parses only integers.
|
|
|
|
|
I always use Int32.Parse, because I can add also NumberStyles, for example if I want to parse a hexadecimal number.
|
|
|
|
|
The only difference when converting from a string is the way a null value is handled.
If you use Convert.ToInt32 on a string, it will return zero if the string is null, otherwise it will use Intr32.Parse to convert the string.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All,
Is it possible <Without opening the file to display it to the users> to send a file directly to the printer to be printed as the user click on a print button instead of on the preview button? If it is would you know how to do so?
Thank you in advance.
He who laughs last...
|
|
|
|
|
I think you can do it, but not using ASP.NET. Probably something like ActiveX could help you, don't ask me how, I don't know Do some research on google.
heh, now I noticed that I'm not on ASP.NET forum, so if you are asking about WinForms, just ignore this post
-- modified at 7:29 Monday 7th August, 2006
|
|
|
|
|
Thank you, i have.
I found something called the printDialog, it's part of the .NET toolbox. I haven't played with it yet but it sounds promissing.
Thank you for your time.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
I use this ...
this.printDocument1.PrintPage += new PrintPageEventHandler(this.printDocument1_PrintPage);<br />
this.printDocument1.Print();
this assumes you have a printDocument1 of type PrintDocument defined
you also need a printDocument1_PrintPage function that uses System.Drawing.Printing.PrintPageEventArgs.Graphics to draw an image to the printer.
This just prints when it is called. there is no dialog to accept or cancel.
Sound confusing at first, but search for these strings in the MSDN library and it will help.
Hope this is what you were looking for.
|
|
|
|
|
Thanks, i'll check it out.
Thanks for taking the time to help me
"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 all , i have a question here an easy one jus need somebody to help me with..
i have 2 application in two different separate proj, how do i go abt linking up the 2 of them..
i thought one of way which is to use a link label however i will get two entry points problem..
can someone come up with a betta idea????
|
|
|
|
|
Can you explain it more clearly please?
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
ok wht i mean is i have a main application which i wanna link to my second application.. if i make the second application as a second form of my first application i have pro debugging like as there will be an error due to 2 entry points..i try deleting the entry point of the second application it cant work... how do i solve this???
|
|
|
|
|
Get rid of hte second static void main when you copy the classes across. That's the entry point, so remove one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi, I want to change listbox backcolor into transparent or set a background image for it . how could i do?
thanks
|
|
|
|
|
Probably you should read this one first:
http://www.codeproject.com/csharp/SharpFormEditorDemo.asp
There are no article about transparent listbox in internet.
Only for MFC.
|
|
|
|
|
hi all,in my application i need to store the word document(minimum 100kb of size) in to the database for searching the document content.I done it by using stream reader(ie:using stream reader i read the entire document and store it in to single column of the table)initially it works fine but now the number of records in the database is nearly 2000 and it take too much time to display the result.Is there any way to do this....
ayyp
|
|
|
|
|
ayyp wrote: it take too much time to display the result.
What result? You only describe the process you use to store the documents. You also have to descibe the process you use to create the result, or the only advice you will get is guesswork.
---
b { font-weight: normal; }
|
|
|
|