format datagridview
I need to format the column in datagrid view in window form, the column is added from data table and bind with grid view 's datasource property. how can we show the amount populated from databse in currency format. please help.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ankit NandekarPosted Apr 20, 2011, 1:19 AM
ds psPosted Apr 20, 2011, 1:17 AM
Ankit NandekarPosted Apr 19, 2011, 7:03 AM
DataGridView1.Columns[column index].DefaultCellStyle.Format = "##,0";