Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 2:11
Colin Angus Mackay19-Oct-04 2:11 
GeneralRe: Override Pin
Anonymous19-Oct-04 2:28
Anonymous19-Oct-04 2:28 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 2:35
Colin Angus Mackay19-Oct-04 2:35 
GeneralRe: Override Pin
Anonymous19-Oct-04 3:08
Anonymous19-Oct-04 3:08 
GeneralRe: Override Pin
Colin Angus Mackay19-Oct-04 3:22
Colin Angus Mackay19-Oct-04 3:22 
GeneralRe: Override Pin
Anonymous19-Oct-04 4:28
Anonymous19-Oct-04 4:28 
Questionhow not to use proxy cashe. Pin
yu-yu19-Oct-04 0:39
yu-yu19-Oct-04 0:39 
GeneralAdding a checkbox column Pin
scotlandc18-Oct-04 23:43
scotlandc18-Oct-04 23:43 
Hi,

I'm not sure if what I want to do is possible but here goes.

I've written a stand alone application that queries a database through a series of stored procedures and displays the relevant data in a datagrid. Users can alter and exclude data as and when necessary but only one row at a time. Here's the thing, I want to add a checkbox column as the first column in the datagrid so that users can select all the rows they wish to exclude at once (all the exclude procedure does is move the rows from one table to another). Can it be done? I've had a few stabs at putting the column in but to no avail. Please can anyone out there point me in the right direction?

Much appreciated and thank you in advance.


Below is the code for formatting tables. I'll post any other code anyone wishes/needs to see.

private void formatData(DataSet ds)
{
label5.Text = ds.Tables[0].Rows.Count.ToString()+" row(s)"; //Row counter

// Clear DG tablestyle
dataGrid1.TableStyles.Clear();

// Apply tablestyles & set column widths
DataGridTableStyle dgStyle = new DataGridTableStyle();
dgStyle.MappingName = ds.Tables[0].TableName;

dataGrid1.TableStyles.Add(dgStyle);
dgStyle.GridColumnStyles[0].Width = 120;
dgStyle.GridColumnStyles[1].Width = 150;
dgStyle.GridColumnStyles[2].Width = 200;
dgStyle.GridColumnStyles[3].Width = 120;
dgStyle.GridColumnStyles[6].Width = 200;
}





GeneralRe: Adding a checkbox column Pin
Heath Stewart19-Oct-04 7:37
protectorHeath Stewart19-Oct-04 7:37 
GeneralRe: Adding a checkbox column Pin
scotlandc21-Oct-04 0:13
scotlandc21-Oct-04 0:13 
GeneralKeyUp Event Pin
exhaulted18-Oct-04 23:03
exhaulted18-Oct-04 23:03 
GeneralRe: KeyUp Event Pin
Stefan Troschuetz18-Oct-04 23:50
Stefan Troschuetz18-Oct-04 23:50 
GeneralRe: KeyUp Event Pin
exhaulted19-Oct-04 4:46
exhaulted19-Oct-04 4:46 
GeneralRe: KeyUp Event Pin
Stefan Troschuetz19-Oct-04 4:59
Stefan Troschuetz19-Oct-04 4:59 
GeneralRe: KeyUp Event Pin
exhaulted19-Oct-04 5:37
exhaulted19-Oct-04 5:37 
GeneralRe: KeyUp Event Pin
Stefan Troschuetz19-Oct-04 9:19
Stefan Troschuetz19-Oct-04 9:19 
GeneralPlease explain code! Pin
Brakanjan18-Oct-04 23:00
Brakanjan18-Oct-04 23:00 
GeneralRe: Please explain code! Pin
J4amieC18-Oct-04 23:43
J4amieC18-Oct-04 23:43 
QuestionHow can i create a handle for mouse events... Pin
Kiran Satish18-Oct-04 20:52
Kiran Satish18-Oct-04 20:52 
AnswerRe: How can i create a handle for mouse events... Pin
exhaulted19-Oct-04 4:50
exhaulted19-Oct-04 4:50 
GeneralRe: How can i create a handle for mouse events... Pin
Kiran Satish19-Oct-04 6:49
Kiran Satish19-Oct-04 6:49 
GeneralRe: How can i create a handle for mouse events... Pin
Kiran Satish19-Oct-04 13:45
Kiran Satish19-Oct-04 13:45 
GeneralRe: Ntier app Pin
Colin Angus Mackay18-Oct-04 20:46
Colin Angus Mackay18-Oct-04 20:46 
GeneralRe: Ntier app Pin
StephenMcAllister19-Oct-04 9:43
StephenMcAllister19-Oct-04 9:43 
GeneralRe: Ntier app Pin
Colin Angus Mackay19-Oct-04 10:54
Colin Angus Mackay19-Oct-04 10:54 

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.