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

C#

 
AnswerRe: C# How to set enabled/disabled buttons collor? Pin
Mazdak8-Sep-04 1:45
Mazdak8-Sep-04 1:45 
GeneralRe: C# How to set enabled/disabled buttons collor? Pin
adnanh758-Sep-04 2:01
adnanh758-Sep-04 2:01 
GeneralListView labeledit Pin
_Magnus_8-Sep-04 0:28
_Magnus_8-Sep-04 0:28 
GeneralRe: ListView labeledit Pin
mav.northwind8-Sep-04 1:10
mav.northwind8-Sep-04 1:10 
GeneralRe: ListView labeledit Pin
_Magnus_8-Sep-04 1:15
_Magnus_8-Sep-04 1:15 
GeneralRe: ListView labeledit Pin
mav.northwind8-Sep-04 1:58
mav.northwind8-Sep-04 1:58 
GeneralRe: ListView labeledit Pin
_Magnus_8-Sep-04 2:01
_Magnus_8-Sep-04 2:01 
Generalrefreshing datagrids Pin
Ashwin C8-Sep-04 0:23
Ashwin C8-Sep-04 0:23 
i have bound a dataset to a datagrid ...

now ..

private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
{
temp = e.Start.Date;
DateTime dt;





dataGridView1.Update();


foreach (DataGridViewRow dr in dataGridView1.Rows)
{
dt = System.Convert.ToDateTime(dr.Cells[2].Value);
// textBox3.Text = dr.Cells[2].FormattedValue.ToString();


if (dr.Cells[2].Value != null && dt.Date.Month != temp.Month)
// dataGridView1.Rows.Remove(dr);
DataTable1DataConnector.RemoveCurrent();
}

}


what im trying to do here is ... i have a monthcalender object on the form .. and when i change the month ..i want to re-populate the datagridview such that it displays only entries of that month ...


how do i do this ?

here it does del the entries whihc are not of that month .. but doest repopulate again !


GeneralRe: refreshing datagrids Pin
Heath Stewart8-Sep-04 10:16
protectorHeath Stewart8-Sep-04 10:16 
Generalprevent new line in DataGrid Pin
BaraaSh7-Sep-04 23:41
BaraaSh7-Sep-04 23:41 
GeneralRe: prevent new line in DataGrid Pin
Mazdak8-Sep-04 1:47
Mazdak8-Sep-04 1:47 
GeneralRe: prevent new line in DataGrid Pin
BaraaSh8-Sep-04 3:48
BaraaSh8-Sep-04 3:48 
GeneralRe: prevent new line in DataGrid Pin
Heath Stewart8-Sep-04 10:15
protectorHeath Stewart8-Sep-04 10:15 
GeneralGraphics::DrawImage problem Pin
gijoebijoe7-Sep-04 23:19
gijoebijoe7-Sep-04 23:19 
GeneralRe: Graphics::DrawImage problem Pin
mav.northwind8-Sep-04 0:10
mav.northwind8-Sep-04 0:10 
GeneralWH_JOURNALRECORD and WH_JOURNALPLAYBACK Pin
Hadi Fakhreddine7-Sep-04 21:11
Hadi Fakhreddine7-Sep-04 21:11 
Generalweb form divide problem Pin
amalatsliit7-Sep-04 20:12
amalatsliit7-Sep-04 20:12 
GeneralRe: web form divide problem Pin
duaneye20038-Sep-04 0:07
duaneye20038-Sep-04 0:07 
GeneralRe: web form divide problem Pin
PSK_8-Sep-04 1:04
PSK_8-Sep-04 1:04 
GeneralRe: web form divide problem Pin
duaneye20038-Sep-04 15:57
duaneye20038-Sep-04 15:57 
GeneralRe: web form divide problem Pin
amalatsliit8-Sep-04 18:19
amalatsliit8-Sep-04 18:19 
GeneralRe: web form divide problem Pin
PSK_9-Sep-04 0:56
PSK_9-Sep-04 0:56 
GeneralRe: web form divide problem Pin
amalatsliit9-Sep-04 17:25
amalatsliit9-Sep-04 17:25 
GeneralRe: web form divide problem Pin
Nick Parker8-Sep-04 9:51
protectorNick Parker8-Sep-04 9:51 
GeneralFiltering on time in a DataView Pin
WillemM7-Sep-04 20:04
WillemM7-Sep-04 20:04 

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.