Problem with gridview
-
Hi All, I need to bind the table data in gridview with some alteration. I have table like below Table structure Application 1-NA RED Comment Application 1-LN Amber Comment Application1 -ZU Green Comment Application 1-NA RED Comment Application 1-LN Amber Comment Application1 -ZU Green Comment I want to cut the application name and want to put as a separate column (heading) and rest of part as region. And bind it with datagrid. Logic or sample of code would be appreciated. I am looking for gridview like below Application 1 NA Red Comment LN Amber Comment ZU Green Comment Application 2 NA Red Comment LN Amber Comment ZU Green Comment
-
Hi All, I need to bind the table data in gridview with some alteration. I have table like below Table structure Application 1-NA RED Comment Application 1-LN Amber Comment Application1 -ZU Green Comment Application 1-NA RED Comment Application 1-LN Amber Comment Application1 -ZU Green Comment I want to cut the application name and want to put as a separate column (heading) and rest of part as region. And bind it with datagrid. Logic or sample of code would be appreciated. I am looking for gridview like below Application 1 NA Red Comment LN Amber Comment ZU Green Comment Application 2 NA Red Comment LN Amber Comment ZU Green Comment
Add another column to your datatable (I would do this in the select statement) and calculate the short name. In your datagrid do not bind the full name field (or hide it by setting the width to 0)
Never underestimate the power of human stupidity RAH