gridview cell width
-
please how do i set the gridview cell width? I am binding the gridview to a datatable. I wrote something like this in the gridview_databound event grdview.cells(0).width=100 but it does not work pls help
Hi there. You need to do this in the RowDataBound event, yes?
-
please how do i set the gridview cell width? I am binding the gridview to a datatable. I wrote something like this in the gridview_databound event grdview.cells(0).width=100 but it does not work pls help
- or - If you are defining your <Columns> in your grid, you could use the <ItemStyle> property of the given column to declaratively set the width.
-
please how do i set the gridview cell width? I am binding the gridview to a datatable. I wrote something like this in the gridview_databound event grdview.cells(0).width=100 but it does not work pls help
Oh, you cross posted this. Please don't do that. You got the same answer in both places, you should just define the width in your aspx, not in code.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )