Click here to Skip to main content
15,900,471 members
Home / Discussions / C#
   

C#

 
Questionhow to enable asp.net to set active directory user password Pin
Anonymous5-Sep-04 6:28
Anonymous5-Sep-04 6:28 
AnswerRe: how to enable asp.net to set active directory user password Pin
Mazdak5-Sep-04 18:57
Mazdak5-Sep-04 18:57 
GeneralListBox right click Pin
eggie55-Sep-04 4:57
eggie55-Sep-04 4:57 
GeneralEvent Handler Wizard Pin
Cliff Hatch5-Sep-04 4:44
Cliff Hatch5-Sep-04 4:44 
GeneralRe: Event Handler Wizard Pin
mav.northwind5-Sep-04 8:09
mav.northwind5-Sep-04 8:09 
GeneralRe: Event Handler Wizard Pin
Cliff Hatch6-Sep-04 8:48
Cliff Hatch6-Sep-04 8:48 
GeneralUPDATE_COMMAND_UI Pin
Cliff Hatch8-Sep-04 10:02
Cliff Hatch8-Sep-04 10:02 
QuestionDouble scrollbar in datagrid? Pin
obby5-Sep-04 4:16
obby5-Sep-04 4:16 
Hi,

I'm using a Datagrid control, bound to a dataview, with several threads updating the dataview by adding rows to it. The datagrid updates fine until the scroll bar appears and then i get a situation where two scrollbars appear instead of one (two vertical and two horizontal scrollbars).
The scrollbar is not a part of any panel and stands independently in the form.

I used a code template found in this site to build the data grid. Updating it is done simply by adding rows to the table of the dataview object.

Here is the code to generate the scrollbar:

System.Windows.Forms.DataGridTableStyle DGStyle =
new DataGridTableStyle():
DataGridTextBoxColumn textColumn;
foreach (DataColumn dc in eventsTable.Columns)
{
textColumn = new DataGridTextBoxColumn();
textColumn.MappingName = dc.ColumnName;
textColumn.HeaderText = dc.Caption;
textColumn.Width = 200;
textColumn.Alignment = System.Windows.Forms.HorizontalAlignment.Left ;
textColumn.ReadOnly = true;
DGStyle.GridColumnStyles.Add(textColumn);
}
DGStyle.MappingName = eventsTable.TableName;
DGStyle.AlternatingBackColor = Color.Gainsboro;
DGStyle.AllowSorting = false;
DGStyle.ReadOnly = true;
LogGrid.TableStyles.Clear();
LogGrid.TableStyles.Add(DGStyle);
eventsView = new DataView(eventsTable);
LogGrid.DataSource = eventsView;




Generalsoftware update project Pin
karanba5-Sep-04 3:29
karanba5-Sep-04 3:29 
GeneralRe: software update project Pin
Baris Kurtlutepe6-Sep-04 11:26
Baris Kurtlutepe6-Sep-04 11:26 
GeneralLabel Height Pin
sreejith ss nair5-Sep-04 2:25
sreejith ss nair5-Sep-04 2:25 
GeneralRe: Label Height Pin
Stefan Troschuetz5-Sep-04 2:41
Stefan Troschuetz5-Sep-04 2:41 
GeneralRe: Label Height Pin
EssOEss5-Sep-04 9:25
EssOEss5-Sep-04 9:25 
GeneralRe: Label Height Pin
sreejith ss nair5-Sep-04 17:40
sreejith ss nair5-Sep-04 17:40 
QuestionYahoo Mail client api? Pin
Amberite005-Sep-04 1:38
Amberite005-Sep-04 1:38 
AnswerRe: Yahoo Mail client api? Pin
Colin Angus Mackay5-Sep-04 1:57
Colin Angus Mackay5-Sep-04 1:57 
GeneralRe: Yahoo Mail client api? Pin
Amberite005-Sep-04 2:09
Amberite005-Sep-04 2:09 
GeneralRe: Yahoo Mail client api? Pin
Colin Angus Mackay5-Sep-04 4:47
Colin Angus Mackay5-Sep-04 4:47 
AnswerRe: Yahoo Mail client api? Pin
eggie55-Sep-04 4:41
eggie55-Sep-04 4:41 
GeneralTrapping Close Window in C# Pin
YiannisF5-Sep-04 0:56
YiannisF5-Sep-04 0:56 
GeneralRe: Trapping Close Window in C# Pin
Colin Angus Mackay5-Sep-04 1:58
Colin Angus Mackay5-Sep-04 1:58 
QuestionCan i add self explained description to a Method or Function? Pin
cindy0235-Sep-04 0:07
cindy0235-Sep-04 0:07 
AnswerRe: Can i add self explained description to a Method or Function? Pin
Colin Angus Mackay5-Sep-04 2:01
Colin Angus Mackay5-Sep-04 2:01 
AnswerRe: Can i add self explained description to a Method or Function? Pin
Stefan Troschuetz5-Sep-04 2:39
Stefan Troschuetz5-Sep-04 2:39 
GeneralRe: Can i add self explained description to a Method or Function? Pin
Anonymous6-Sep-04 0:06
Anonymous6-Sep-04 0:06 

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.