Click here to Skip to main content
15,914,444 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I detect silence Pin
GuruVN5-Jun-04 15:22
GuruVN5-Jun-04 15:22 
GeneralRe: How can I detect silence Pin
Heath Stewart5-Jun-04 18:14
protectorHeath Stewart5-Jun-04 18:14 
GeneralRe: How can I detect silence Pin
leppie6-Jun-04 0:00
leppie6-Jun-04 0:00 
AnswerRe: How can I detect silence Pin
Roman Rodov6-Jun-04 21:14
Roman Rodov6-Jun-04 21:14 
QuestionHow to add a background image for ListviewItem? Pin
cmxcmz20025-Jun-04 2:27
cmxcmz20025-Jun-04 2:27 
AnswerRe: How to add a background image for ListviewItem? Pin
Heath Stewart5-Jun-04 8:21
protectorHeath Stewart5-Jun-04 8:21 
QuestionHow can I Edit a Readonly DataGrid? Pin
mkomasi5-Jun-04 2:16
mkomasi5-Jun-04 2:16 
AnswerRe: How can I Edit a Readonly DataGrid? Pin
Heath Stewart5-Jun-04 8:17
protectorHeath Stewart5-Jun-04 8:17 
Edit the data itself and update the DataGrid. This works different than in ASP.NET because it is different that in ASP.NET. In Windows Forms, it's a control. In ASP.NET, it simply generates different HTML based on state. There's a big difference.

Once you've edited the data (like a DataSet, which you should use the DataTable.DefaultView to take into account any re-ordering), you can re-data-bind your control either by setting the DataSource property to null and then back to the DataSet (or whatever), or refresh the CurrencyManager like so:
CurrencyManager cm = (CurrentyManager)
  dataGrid1.BindingContext[dataGrid1.DataSource,
    dataGrid1.DataMember];
if (cm != null) cm.Refresh();


 

Microsoft MVP, Visual C#
My Articles
GeneralDatagrid and a checkbox Pin
MeterMan4-Jun-04 20:46
MeterMan4-Jun-04 20:46 
GeneralRe: Datagrid and a checkbox Pin
Heath Stewart5-Jun-04 7:49
protectorHeath Stewart5-Jun-04 7:49 
GeneralHandle Click on MenuItems with sub menu Pin
jeegar4-Jun-04 14:47
jeegar4-Jun-04 14:47 
GeneralRe: Handle Click on MenuItems with sub menu Pin
leppie4-Jun-04 19:47
leppie4-Jun-04 19:47 
GeneralRe: Handle Click on MenuItems with sub menu Pin
Heath Stewart5-Jun-04 7:46
protectorHeath Stewart5-Jun-04 7:46 
Generalc#-configuration file Pin
Member 11509014-Jun-04 11:20
Member 11509014-Jun-04 11:20 
GeneralRe: c#-configuration file Pin
Heath Stewart5-Jun-04 7:44
protectorHeath Stewart5-Jun-04 7:44 
GeneralC# Transparency issues Pin
Adam Durity4-Jun-04 10:24
Adam Durity4-Jun-04 10:24 
GeneralRe: C# Transparency issues Pin
Heath Stewart4-Jun-04 10:43
protectorHeath Stewart4-Jun-04 10:43 
GeneralRe: C# Transparency issues Pin
Adam Durity4-Jun-04 10:44
Adam Durity4-Jun-04 10:44 
GeneralRe: C# Transparency issues Pin
Heath Stewart4-Jun-04 10:48
protectorHeath Stewart4-Jun-04 10:48 
GeneralRe: C# Transparency issues Pin
leppie4-Jun-04 10:53
leppie4-Jun-04 10:53 
GeneralRe: C# Transparency issues Pin
Heath Stewart4-Jun-04 11:01
protectorHeath Stewart4-Jun-04 11:01 
GeneralRe: C# Transparency issues Pin
leppie4-Jun-04 11:06
leppie4-Jun-04 11:06 
GeneralRe: C# Transparency issues Pin
leppie4-Jun-04 10:49
leppie4-Jun-04 10:49 
GeneralRe: C# Transparency issues Pin
bneacetp4-Jun-04 17:11
bneacetp4-Jun-04 17:11 
GeneralSide TabControl Pin
kaleid4-Jun-04 9:38
kaleid4-Jun-04 9:38 

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.