Hi everyone I encountered the same problem below and the solution also worked for me but it only work once after i refreshed the datagridview i found that i cannot use the calendar dropdown any more
all answers are appriciated
Thanks
I've downloaded some code relative to establishing a column on my
DataGridView which allows me to use the DateTimePicker. So far so good. If I
add a column using
dim col as new CalendarColumn
the grid works great. However...I need to assign an existing column ...
from a database. How do I make datagridview1.c olumns("NoteDat e") my
CalendarColumn?
Any suggestions?
Thanks Arne
Feb 15 '07 #1
Post Reply
Share this Question
Share on Google+
2 Replies
ClayB
P: n/a
ClayB
Here is one way you can do it.
Dim col As New CalendarColumn( )
col.DataPropert yName = "NoteDate"
col.HeaderText = "Headertext "
Dim loc As Integer =
dataGridView1.C olumns.IndexOf( dataGridView1.C olumn s("NoteDate") )
dataGridView1.C olumns.RemoveAt (loc)
dataGridView1.C olumns.Insert(l oc, col)
=============== =
Clay Burch
Syncfusion, Inc.
all answers are appriciated
Thanks
I've downloaded some code relative to establishing a column on my
DataGridView which allows me to use the DateTimePicker. So far so good. If I
add a column using
dim col as new CalendarColumn
the grid works great. However...I need to assign an existing column ...
from a database. How do I make datagridview1.c olumns("NoteDat e") my
CalendarColumn?
Any suggestions?
Thanks Arne
Feb 15 '07 #1
Post Reply
Share this Question
Share on Google+
2 Replies
ClayB
P: n/a
ClayB
Here is one way you can do it.
Dim col As New CalendarColumn( )
col.DataPropert yName = "NoteDate"
col.HeaderText = "Headertext "
Dim loc As Integer =
dataGridView1.C olumns.IndexOf( dataGridView1.C olumn s("NoteDate") )
dataGridView1.C olumns.RemoveAt (loc)
dataGridView1.C olumns.Insert(l oc, col)
=============== =
Clay Burch
Syncfusion, Inc.