Click here to Skip to main content
15,913,669 members
Home / Discussions / C#
   

C#

 
AnswerRe: onkeydown not getting arrow keys ? Pin
Werdna6-Sep-04 9:53
Werdna6-Sep-04 9:53 
GeneralRe: onkeydown not getting arrow keys ? Pin
Christian Graus6-Sep-04 10:40
protectorChristian Graus6-Sep-04 10:40 
Generaldifferential comparison algo Pin
sho125-Sep-04 10:37
sho125-Sep-04 10:37 
GeneralRe: differential comparison algo Pin
Christian Graus5-Sep-04 12:31
protectorChristian Graus5-Sep-04 12:31 
GeneralRe: differential comparison algo Pin
mitchelle24-Oct-04 5:22
mitchelle24-Oct-04 5:22 
GeneralRe: differential comparison algo Pin
Christian Graus24-Oct-04 9:46
protectorChristian Graus24-Oct-04 9:46 
QuestionURL Changes when using Server Transfer, why? Pin
Meera Nair5-Sep-04 6:50
Meera Nair5-Sep-04 6:50 
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 

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.