Click here to Skip to main content
15,881,588 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionPrinting pdf files in batch using VB.net Pin
Saiju Menon14-Dec-10 19:28
Saiju Menon14-Dec-10 19:28 
AnswerRe: Printing pdf files in batch using VB.net Pin
_Erik_15-Dec-10 4:23
_Erik_15-Dec-10 4:23 
GeneralRe: Printing pdf files in batch using VB.net Pin
Saiju Menon15-Dec-10 22:49
Saiju Menon15-Dec-10 22:49 
GeneralRe: Printing pdf files in batch using VB.net [modified] Pin
_Erik_16-Dec-10 6:12
_Erik_16-Dec-10 6:12 
QuestionDatagridview Pin
kindman_nb13-Dec-10 20:43
kindman_nb13-Dec-10 20:43 
AnswerRe: Datagridview Pin
dan!sh 13-Dec-10 21:18
professional dan!sh 13-Dec-10 21:18 
AnswerRe: Datagridview Pin
Ger Hayden17-Dec-10 11:16
Ger Hayden17-Dec-10 11:16 
AnswerRe: Datagridview Pin
Ger Hayden18-Dec-10 5:22
Ger Hayden18-Dec-10 5:22 
Here is how I use the checkbox column in a DataGridView using C++/CLI.

I load my datagrid launching my forms. In my RowEntered function I dislay the value of the checkbox from the grid in a static region of the screen. I am currently using a try/catch construct.
try
{
    chkRegistered->Checked = (bool)gridPerson->Rows[e->RowIndex]->Cells[dgRegistered->Index]->Value;
}
catch(Exception ^e)
{
    chkRegistered->Checked = false;
}


I have also used (but since stopped) an if statement for this purpose.

if (gridPerson->Rows[e->RowIndex]->Cells[9]->Value == true)
    chkRegistered->Checked = true;
else
    chkRegistered->Checked = false;



This is an extract from the CellValueChanged Event where I capture the checkbox value for storage:
case 9:
    {
        chkRegistered->Checked = safe_cast<bool>(gridPerson->Rows[e->RowIndex]->Cells[9]->Value);
        m_ElementList = m_ElementList | m_FlagBits::REGISTERED;
        break;
    }


One last thing, have a look at the code converters from www.tangiblesoftwaresolutions.com - I use them to convert snippets from VB and C# to C++ for my use.

Regards
Ger

QuestionSystem.Diagnostics.Process.GetProcessesByName Question Pin
gmhanna13-Dec-10 10:10
gmhanna13-Dec-10 10:10 
AnswerRe: System.Diagnostics.Process.GetProcessesByName Question Pin
Not Active13-Dec-10 10:30
mentorNot Active13-Dec-10 10:30 
GeneralRe: System.Diagnostics.Process.GetProcessesByName Question Pin
Brian C Hart13-Dec-10 11:23
professionalBrian C Hart13-Dec-10 11:23 
GeneralRe: System.Diagnostics.Process.GetProcessesByName Question Pin
Pete O'Hanlon13-Dec-10 11:28
mvePete O'Hanlon13-Dec-10 11:28 
AnswerRe: System.Diagnostics.Process.GetProcessesByName Question Pin
_Erik_13-Dec-10 12:55
_Erik_13-Dec-10 12:55 
GeneralRe: System.Diagnostics.Process.GetProcessesByName Question Pin
gmhanna14-Dec-10 3:30
gmhanna14-Dec-10 3:30 
QuestionData Transfer using MAC address [modified] Pin
ganesh_IT12-Dec-10 22:24
ganesh_IT12-Dec-10 22:24 
AnswerRe: Data Transfer using MAC address Pin
Luc Pattyn12-Dec-10 22:47
sitebuilderLuc Pattyn12-Dec-10 22:47 
AnswerRe: Data Transfer using MAC address Pin
Pete O'Hanlon13-Dec-10 1:08
mvePete O'Hanlon13-Dec-10 1:08 
AnswerRe: Data Transfer using MAC address Pin
Dave Kreskowiak13-Dec-10 9:03
mveDave Kreskowiak13-Dec-10 9:03 
GeneralRe: Data Transfer using MAC address Pin
ganesh_IT13-Dec-10 18:01
ganesh_IT13-Dec-10 18:01 
GeneralRe: Data Transfer using MAC address Pin
Dave Kreskowiak13-Dec-10 18:14
mveDave Kreskowiak13-Dec-10 18:14 
Questionapp.Config deployment Pin
Jassim Rahma12-Dec-10 2:39
Jassim Rahma12-Dec-10 2:39 
AnswerRe: app.Config deployment Pin
Estys12-Dec-10 3:04
Estys12-Dec-10 3:04 
AnswerRe: app.Config deployment Pin
Not Active12-Dec-10 3:38
mentorNot Active12-Dec-10 3:38 
Questionmultiple project assembly Pin
Jassim Rahma12-Dec-10 2:37
Jassim Rahma12-Dec-10 2:37 
AnswerRe: multiple project assembly Pin
Not Active12-Dec-10 3:32
mentorNot Active12-Dec-10 3:32 

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.