Hi Roy,
> what i'd like to happen is the 1st column will format to text while the other is currency
Youcan handle the CellFormatting event of the DataGridView to do this. For example:
| PrivateSubDataGridView1_CellFormatting(ByValsenderAsObject,ByValeAsSystem.Windows.Forms.DataGridViewCellFormattingEventArgs)HandlesDataGridView1.CellFormatting |
| If(e.ColumnIndex=0)Then |
| e.Value="sometext" |
| EndIf |
| EndSub |
> and if a user will press a button clear the data in datagridview will clear..
If the DataGridView is not bound to a data source, you can clear data in the DataGridView by calling the following line of code:
Me.DataGridView1.Rows.Clear()
If the DataGridView is bound to a data source, set the DataSource property of the DataGridView to Nothing.
Hope this helps.
If youhave any question, please feel free to let me know.
Sincerely,
Linda Liu