|
do you mean center the text of the 'header' at the top of the of the grid view?
|
|
|
|
|
if so then:
dataGridView1.Columns[0].HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
|
|
|
|
Ohh, yes, excuse me about the mistake. Thank you very much
|
|
|
|
|
What have you tried?
Maybe a code snippet from you will help us to point you in the right direction.
Otherwise try google.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
ArielR wrote: How to centre a datarowview column heather?
That's wonderful!
Welcome in the CP's members memorable quotes. [^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
JA!, Thank you for the postulation, ..have hard fingers...
|
|
|
|
|
Didn't know that C# can be used to get heat too
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
lol maybe 'Datagridview' are an electrical appliance company and he stumbled on this forum while looking for tips on the layout of his house funiture
|
|
|
|
|
I have a binding to a datatable and want to return values from the columns for position zero without changing the binding position to do it.
How can i do this please?
|
|
|
|
|
simple, mydataset.mydatatable[0].mycolumnName....
|
|
|
|
|
|
I want to format a DateTime value into a string. The thing is that I’m developing a Multilanguage application and I want to format the string according to the users culture.
For example:
Swedish: YYYY:MM:DD HH:mm
English: DD/MM/YYYY HH:mm
_____________________________
...and justice for all
|
|
|
|
|
I believe there's a ToString method that uses the local culture, or that takes the culture at least, so you can ask the system for it ).
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
DateTime.ToString("g")
made it for me.
_____________________________
...and justice for all
|
|
|
|
|
|
string myDate = DateTime.Now.ToString("dd/MM/YYYY HH:mm");
Why was this post voted a 1?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Wednesday, January 21, 2009 1:35 PM
|
|
|
|
|
Yeah, what they said, but you should only use ISO 8601-compliant date formats: yyyy-MM-dd HH:mm
|
|
|
|
|
How to implement kerberos authentication in ASP.net..
%$^
|
|
|
|
|
LMAO, your wasting your time with that one (I mean the question)
|
|
|
|
|
Does this LOOK like the ASP.NET forum to you ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Does this LOOK like the ASP.NET forum to you ?
Sure it does - it's got orange bits at the top and the side and blue bits with questions in. Existentially, this could all be viewed as one big ASP.NET forum.
|
|
|
|
|
Good point..... you forgot the key thing, the url has aspx in it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
lachu009 wrote: How to implement kerberos authentication in ASP.net..
Well, you're hosed if you don't have a kerberos server.
|
|
|
|
|
Use Windows Authentication from a Windows Domain server.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego.
|
|
|
|
|
I created a client-server application where I installed the client on 10 computers in a network (LAN)... now since the IP address of each computer are dynamic.. I created my server in such a way that I will scan the network from something like 192.168.1.1 to 192.168.1.255 just to find those 10 computers. It works, it was able to detect the 10 computers which is running the specific service.. My problem is that the detection is too slow.. starts from 192.168.1.1 (30 seconds) then 192.168.1.2 (another 30 seconds) so like an average of 30 seconds for each IP... is there a way to fasten this up?
|
|
|
|