How can I add the prefix value to an DataColumn

G

Guest

Hi ,
How can I add the prefix value to an DataColumn ?

For example:
I have one table called Employee in that EmpID is Column.To this column i want to add "SRIT" as a prefix value , like " SRIT- XXXX".

Any ideas regarding this.

Thanks,
Satish
 
W

William Ryan eMVP

The DataColumn has a ColumnName property that you can set - optionally, if
this is purely for UI purposes in a grid for instance, you can apply a
DataGridTableStyle and then a DataGridColumnStyle and set its HeaderText
property there. http://www.knowdotnet.com/articles/cgrid.html

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups
Satish H.S said:
Hi ,
How can I add the prefix value to an DataColumn ?

For example:
I have one table called Employee in that EmpID is Column.To this column i
want to add "SRIT" as a prefix value , like " SRIT- XXXX".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top