Click here to Skip to main content
14,736,189 members
Home » Discussions » C#
   

C#

 
GeneralRe: Accessing an array from another function ? Pin
OriginalGriff15-Jun-09 23:53
mveOriginalGriff15-Jun-09 23:53 
QuestionRoom Reservation Screen Pin
Amitkk319315-Jun-09 6:41
MemberAmitkk319315-Jun-09 6:41 
AnswerRe: Room Reservation Screen Pin
Manas Bhardwaj15-Jun-09 7:04
professionalManas Bhardwaj15-Jun-09 7:04 
AnswerRe: Room Reservation Screen Pin
DaveyM6915-Jun-09 7:25
professionalDaveyM6915-Jun-09 7:25 
GeneralRe: Room Reservation Screen Pin
EliottA15-Jun-09 11:48
MemberEliottA15-Jun-09 11:48 
QuestionCell Borders in DataGridViews Pin
MatthysDT15-Jun-09 5:55
MemberMatthysDT15-Jun-09 5:55 
AnswerRe: Cell Borders in DataGridViews Pin
Henry Minute15-Jun-09 6:51
MemberHenry Minute15-Jun-09 6:51 
AnswerRe: Cell Borders in DataGridViews Pin
Henry Minute15-Jun-09 10:26
MemberHenry Minute15-Jun-09 10:26 
Have you seen this[^] from MSDN?

I have modified it slightly
public class DataGridViewCustomCell : DataGridViewTextBoxCell
{
    public override DataGridViewAdvancedBorderStyle AdjustCellBorderStyle(
        DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStyleInput,
        DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceHolder,
        bool singleVerticalBorderAdded,
        bool singleHorizontalBorderAdded,
        bool firstVisibleColumn,
        bool firstVisibleRow)
    {
        // Customize the top border of cells in every row except the first row and the
        // right border of cells in every column except the first column. Use the input style
        // for all other borders.
        dataGridViewAdvancedBorderStylePlaceHolder.Left =
            dataGridViewAdvancedBorderStyleInput.Left;
        dataGridViewAdvancedBorderStylePlaceHolder.Top =
            dataGridViewAdvancedBorderStyleInput.Top;

        dataGridViewAdvancedBorderStylePlaceHolder.Right = firstVisibleColumn ?
            DataGridViewAdvancedCellBorderStyle.Single :
            DataGridViewAdvancedCellBorderStyle.OutsetDouble;

        dataGridViewAdvancedBorderStylePlaceHolder.Bottom =
            DataGridViewAdvancedCellBorderStyle.None;

        return dataGridViewAdvancedBorderStylePlaceHolder;
    }
}


which works pretty well.

Still haven't found a way to do it at runtime though.

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.”

Questioncreate excell file Pin
michaelgr115-Jun-09 5:51
Membermichaelgr115-Jun-09 5:51 
AnswerRe: create excell file Pin
Simon P Stevens15-Jun-09 6:45
MemberSimon P Stevens15-Jun-09 6:45 
AnswerRe: create excell file Pin
Rolf Jaeger15-Jun-09 18:33
MemberRolf Jaeger15-Jun-09 18:33 
QuestionGetting LINQtoSQL to work with FitNesse Pin
Nuz_UK15-Jun-09 5:44
MemberNuz_UK15-Jun-09 5:44 
QuestionTrashing the content of managed variables Pin
OriginalGriff15-Jun-09 5:18
mveOriginalGriff15-Jun-09 5:18 
AnswerRe: Trashing the content of managed variables Pin
led mike15-Jun-09 5:34
Memberled mike15-Jun-09 5:34 
GeneralRe: Trashing the content of managed variables Pin
OriginalGriff15-Jun-09 5:44
mveOriginalGriff15-Jun-09 5:44 
GeneralRe: Trashing the content of managed variables Pin
Rob Philpott15-Jun-09 6:41
MemberRob Philpott15-Jun-09 6:41 
GeneralRe: Trashing the content of managed variables Pin
OriginalGriff15-Jun-09 6:59
mveOriginalGriff15-Jun-09 6:59 
GeneralRe: Trashing the content of managed variables Pin
led mike15-Jun-09 10:26
Memberled mike15-Jun-09 10:26 
AnswerRe: Trashing the content of managed variables Pin
PIEBALDconsult15-Jun-09 6:47
professionalPIEBALDconsult15-Jun-09 6:47 
GeneralRe: Trashing the content of managed variables Pin
OriginalGriff15-Jun-09 6:56
mveOriginalGriff15-Jun-09 6:56 
GeneralRe: Trashing the content of managed variables Pin
PIEBALDconsult15-Jun-09 9:18
professionalPIEBALDconsult15-Jun-09 9:18 
QuestionAdd String attrribute to File Pin
hirenkshah15-Jun-09 3:37
Memberhirenkshah15-Jun-09 3:37 
AnswerRe: Add String attrribute to File Pin
Nagy Vilmos15-Jun-09 3:44
professionalNagy Vilmos15-Jun-09 3:44 
AnswerRe: Add String attrribute to File Pin
OriginalGriff15-Jun-09 4:20
mveOriginalGriff15-Jun-09 4:20 
QuestionIs local administrator password is blank or not Pin
priyanka_jns15-Jun-09 3:03
Memberpriyanka_jns15-Jun-09 3:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.