Click here to Skip to main content
16,010,876 members
Home / Discussions / C#
   

C#

 
GeneralRe: ExecuteNonQuery Pin
Heath Stewart10-Aug-04 11:39
protectorHeath Stewart10-Aug-04 11:39 
GeneralRegistry Problem..! Pin
QzRz10-Aug-04 7:22
QzRz10-Aug-04 7:22 
GeneralRe: Registry Problem..! Pin
Nick Parker10-Aug-04 7:40
protectorNick Parker10-Aug-04 7:40 
Questionhow do get permission to send an email from ASP.net? Pin
spazzman10-Aug-04 7:15
spazzman10-Aug-04 7:15 
AnswerRe: how do get permission to send an email from ASP.net? Pin
Nick Parker10-Aug-04 7:28
protectorNick Parker10-Aug-04 7:28 
QuestionHow to operate registry of WinCE Pin
wk_vigorous10-Aug-04 6:48
wk_vigorous10-Aug-04 6:48 
AnswerRe: How to operate registry of WinCE Pin
Nick Parker10-Aug-04 7:24
protectorNick Parker10-Aug-04 7:24 
GeneralA problem in DataGrid Pin
Anonymous10-Aug-04 4:50
Anonymous10-Aug-04 4:50 
I have a datagrid that all of its columns are BoolColumnStyle and its DataSource is a table with no relations. I relate this DG with a counter, when I mark true or false in each DataGridCell the counter adds or subtracts (respectively) a certain number. Also I relate a TreeView with this DataGrid that the previous counter works for each TreeNode under the TopNode in this DataGrid. I use this code to make my datagrid to respond to one click :

private void dataGrid1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
DataGrid.HitTestInfo hti = this.dataGrid1.HitTest(e.X, e.Y);

try
{
if( hti.Type = = DataGrid.HitTestType.Cell )
{
int r = (int)hti.Row;
int c = (int)hti.Column;

DataRow dr = table.Rows[r];
DataColumn dc = table.Columns[c];

this.dataGrid1[r,c] = !(bool) this.dataGrid1[r,c];
}
}
catch(Exception ex )
{
MessageBox.Show(ex.ToString());
}

} // dataGrid1_MouseUp

I have the following problems :

1. The following message appears. I do not know what is the ListManeger or in other words, I do not understand what is the problem.

2. The DataGrid responds to clicks even when there is no TreeNodes are selected. I want the DataGrid to respond to clicks only when any TreeNode under the TopNode is selected.

3. when the selected TreeNode is changed, I empty the DataGrid by the following code, but the last cell that I add a value to it remains checked :

for(int i=0 ; i
GeneralRe: A problem in DataGrid Pin
Nick Parker10-Aug-04 6:11
protectorNick Parker10-Aug-04 6:11 
Generalavoiding double invoking Pin
Stephan Wright10-Aug-04 3:25
Stephan Wright10-Aug-04 3:25 
GeneralRe: avoiding double invoking Pin
Nick Parker10-Aug-04 3:49
protectorNick Parker10-Aug-04 3:49 
GeneralRe: avoiding double invoking Pin
Stephan Wright10-Aug-04 4:02
Stephan Wright10-Aug-04 4:02 
GeneralRe: avoiding double invoking Pin
Nick Parker10-Aug-04 4:21
protectorNick Parker10-Aug-04 4:21 
GeneralRe: avoiding double invoking Pin
Stephan Wright10-Aug-04 22:04
Stephan Wright10-Aug-04 22:04 
GeneralRe: avoiding double invoking Pin
Stephan Wright10-Aug-04 23:45
Stephan Wright10-Aug-04 23:45 
GeneralRe: avoiding double invoking Pin
Stephan Wright11-Aug-04 7:53
Stephan Wright11-Aug-04 7:53 
GeneralRe: avoiding double invoking Pin
Nick Parker11-Aug-04 9:13
protectorNick Parker11-Aug-04 9:13 
GeneralRe: avoiding double invoking Pin
Stephan Wright11-Aug-04 20:59
Stephan Wright11-Aug-04 20:59 
GeneralRe: avoiding double invoking Pin
Anonymous12-Aug-04 2:05
Anonymous12-Aug-04 2:05 
Generalinstall AddIn in VS.NET2003 Pin
nthevu10-Aug-04 3:08
professionalnthevu10-Aug-04 3:08 
GeneralRe: install AddIn in VS.NET2003 Pin
Nick Parker10-Aug-04 3:56
protectorNick Parker10-Aug-04 3:56 
QuestionHow to change default color of Tabpage >> Answer Pin
sreejith ss nair10-Aug-04 2:57
sreejith ss nair10-Aug-04 2:57 
AnswerRe: How to change default color of Tabpage >> Answer Pin
Nick Parker10-Aug-04 4:00
protectorNick Parker10-Aug-04 4:00 
GeneralRe: How to change default color of Tabpage >> Answer Pin
sreejith ss nair10-Aug-04 17:11
sreejith ss nair10-Aug-04 17:11 
GeneralTitle bar Height Pin
Shiva_Hosa10-Aug-04 1:56
Shiva_Hosa10-Aug-04 1:56 

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.