|
The DataGridView is probably not the best control to use for this then. Consider something like a Repeater where you can specify the number of horizontal columns
only two letters away from being an asset
|
|
|
|
|
i thought that, but you do not think there is a way to get around it?
|
|
|
|
|
The way to get around it is to use the proper tools for the job.
only two letters away from being an asset
|
|
|
|
|
probably, but sometimes the time for doing the best solution is to long... i have to change a lot if I am going for a differnt dataholoder....
|
|
|
|
|
Depending on the layout of your form, and how you access the data, you could possibly make your own control, inheriting from DataGridView with the appropriate columns configured, and then create a new control every 6 (or whatever the number was) records. Complicated to keep track of though and could involve large numbers of controls.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
And how is adding time and complexity a solution?
only two letters away from being an asset
|
|
|
|
|
I didn't say it was optimal. Simply that it was an approach. Sometimes when you're stuck, even a wrong answer can prompt you into getting it.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks, I have to think about that. I will probably go with changing the structure of my solution, because i am trying to use datagrudview in a way that it should not be used.
|
|
|
|
|
Always time to do it over but never time to do it right.
mjelten wrote: i have to change a lot if I am going for a differnt dataholoder
Then it probably wasn't architected well enough in the first place. You should be able to change the presentation without affecting that much. But anyway, good luck
only two letters away from being an asset
|
|
|
|
|
I agree, but the mistake is already made
|
|
|
|
|
|
vahidha wrote: I need java code for that purpose
And you are asking for that in a C# forum???
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
A few points.
vahidha wrote: Its very urgent..
Not for me it isn't. I couldn't care less.
vahidha wrote: I need java code for that purpose
If you can't tell the difference between C# and Java, you're not even qualified to stuff envelopes for a living.
vahidha wrote: I need java code
This isn't rentacoder - we don't write your code for you here. We expect you to get off your lazy ass and write it yourself. We'll help if you get stuck, but as we don't get your pay check, we don't do your job.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
this your code
try
{
if (!question.ToUpper().Contains("C#")){
throw new WrongForumException("You are in wrong forum.");
}
if (question.ToUpper().Contains("URGENT")){
throw new NotYourSlaveException("We are not your slave dud.");
}
SomeBodyWillTryToAnswerYourQuestion();
}
catch (Exception ex)
{
Console.WriteLine("Nice try, but "+ ex.Message +" raised");
}
hope it will open your mind.
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
Not to be pedantic but you really shouldn't swallow exceptions. If you are going to swallow the exceptions then you probably don't need to throw them. An if statement is way more appropriate.
|
|
|
|
|
can anyone please tell how can i put multiple forecolors for my text in one textboxx only in c#. thanks in advance.
|
|
|
|
|
Hi,
that can't be done, a TextBox has a single foreground color, a single background color, a single font, etc. that applies to the entire content. If that does not suit you, have a look at the RichTextBox Control.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Whenever a child window gets activated(focus). the scroll bar is resetting to start position.
if have scrolled to bottom and if i click somewhere else and click the child window, it is resetting the scrollbar to default position.
pls help me..
|
|
|
|
|
I had an in-process dll which is developed in vs2005 in c#. How can make a setup of this to
install/uninstall an client machine?
Through the setup, how can I register my dll in registry.
In the setup I have to include .Net framework2.0 also.
Simultaneously, I have to insert other dll(XYZ.dll) in a specified folder(C:\ABC).
How can I do all these through a single setup?
|
|
|
|
|
svt gdwl wrote: How can make a setup of this to
install/uninstall an client machine?
Like this[^]
svt gdwl wrote: Through the setup, how can I register my dll in registry.
This way[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
How to change the dragging bar's background of splitcontainer in C#?
Many thanks!
|
|
|
|
|
who can help me on it? thanks!
|
|
|
|
|
The only way I know to do this is to set the BackColor property of the SplitContainer to the color you want. You then have to set the BackColor for Panel1 and Panel2 to SystemColors.Control, or whatever you normally use.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
STOP POSTING THE SAME, please
|
|
|
|