|
no, i only want change specific row back color, and i want know how to do that ?
thanks
|
|
|
|
|
I don't think you can do that in Windows Forms.
|
|
|
|
|
i think can be done, but i don't know how?
like properties BackColor of DataGrid, it change bg color of odd number row
|
|
|
|
|
I was just wondering because datagrid does not have a Row(s) property.
|
|
|
|
|
Sorry a bit of a late reply but hopefully this will still help you.
You can set a rows color using the following line:
dataGridView1.Rows[i].DefaultCellStyle.BackColor = Color.Blue;
(where 'i' is the current row as i am assuming you will have a loop so you can set the color depending on the row index).
You can also set the default row and cell styles using the properties window however this will apply to every cell and row.
|
|
|
|
|
Hello All,
Please help me solve this problem. I want to create an editor/designer that will handle the following situation.
I have an abstract class Marker, and many different implementations that will not be exposed to the user.
The markers are created through a factory system, MarkerFactory, and I have a collection
of the markers in a Control that I will to create the editor/designer for.
<br />
public class Marker<br />
{<br />
protected Marker(...){}<br />
} <br />
<br />
internal class AMarker : Marker<br />
{<br />
} <br />
<br />
internal class BMarker : Marker<br />
{<br />
} <br />
<br />
public class MarkerFactory<br />
{<br />
public Marker Create(...) {return newMarker;}<br />
}<br />
<br />
public class MarkerControl : Control<br />
{<br />
[MarkerDesigner]<br />
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]<br />
public IList<Marker> Markers<br />
{<br />
get{ return markerList;}<br />
}<br />
} <br />
Any guide/hint as to how I could create such an UITypeEditor, that will work with the
factory system.
Best regards,
Paul.
-- modified at 10:40 Monday 18th June, 2007
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Please don't cross post in multiple forums.
|
|
|
|
|
I thought I saw this question earlier in another forum :->
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I cannot believe that in this day and age I cannot find a control to edit time.
There are controls which can almost make coffee, but not one where a user can easily enter the time.
I am not talking about the 13:45:65 PM thing where the user must select each two digit pair,
edit it or run the minute spinner buttons. It must be easier.
Like a clock view where you drag the hour, minute and seconds hands, and it snaps to every 1,5,10,15,30,60 or whatever minutes
and you can select Now with one click, and so on.. Surely nothing compared to making coffee.
Am I looking in the wrong places ?
Please help.
|
|
|
|
|
see the datetimepeaker control in visual studio
etretyertyery
|
|
|
|
|
can anybody tell me how can i insert into a column in microsoft access that have a yes/no datatype
plz help me regards
etretyertyery
|
|
|
|
|
It just remember my college days.
Now and all i am not using MS-Access we are using Oracle and SQL SERVER 2000/2005.
For more Details about MS-Access Get it[^]
Regards,
Satips.
|
|
|
|
|
I presume that yes/no would map to a boolean data type.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
their is a sample query that i use:
update tblClient set exist='no' !!!! but their is something wrong in this query because it can't
update the following record that have a yes/no datatype.
please if we have something to do in access or something in my code so plz help me?????
thanks
etretyertyery
|
|
|
|
|
I would suspect from your example there that the problem is the quotes around 'no'. This implies that it is a string type. Replace this with false instead.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hey this is not the problem, i still have the problem
plz i need that any help
bye
etretyertyery
|
|
|
|
|
tantoun wrote: set exist='no'
'no' is a string. This isn't going to work, as someone else said. It's almost certainly the case that you need to use a boolean to set it.
I googled, and found this[^] within seconds. We were right, you set it using the boolean type.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Access doesn't like complicated terms like boolean. It actually calls the field type Yes/No.
|
|
|
|
|
Yeah, I guessed that was the case. I don't use Access, except to drive my CD database, and even then, it uses SQL Server on the back end.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Is there any way around the limitation that the designer just doesn't work with forms whose base class is abstract?
Seems like quite an irritating limitation to me.
|
|
|
|
|
Unfortunately not, as the designer needs to be able to instantiate the class in order to display it on the design surface.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
originSH wrote: If you'd like this included at some point in the future please vote for it at:
Even although it is marked as "Closed (Won't Fix)" I've voted for it anyway - They may reopen it... perhaps.
Actually, that designation of "Won't fix" makes them sound like a petulant child. Ho-hum...
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
I just don't understand how other stuff like drag and drop support for data binding got prioritised over this.
Generics and abstraction are pretty core concepts and not a day goes by without me using them in classes for the most basic of stuff to the most advanced. Then I have to spend time working around this limitation when using WinForms :/ it sucks arse :P
Also why did they try to use backwards compatability as an excuse for not implimenting it? As I said in the comments I can understand lack of demand but which part would break backwards compatability.
|
|
|
|
|
I've run into that problem myself. There is simply no way around this.
|
|
|
|