i want to access gridview collumn 2 and for each row replace the text that is there with a "*" because its a password fields so instead on show the pass hide it with * so its more or less this but... see comment line
I need the yoy var %, bm % yoy bps, and opps generated to have a backcolor of gold. before it was a itemtemplate it was easy to change it in the codebehind but now that it is a itemtemplate it wont change anymore.
am binding a gridview to datatable ...and now i want to add a linkbutton/hyperlink as one of the columns in gridview (similar to checkbox field) ...am adding the Lbtn inside a template field ,but i want that column to come as last column ..but its coming as first column,,,how to acheive that??
moreover ,whn i clk on eack linkbutton a pop-up window has to come with submit and save and close buttons and functionality(is it better to use linkbutton or hyperlink??)...am using vs 2005
I have a dataset into which I load an xml file using DS.ReadXml("~/Example.xml"). I have a column labeled show which is a checkbox. Below the gridview I have a button which says show all. When this is pressed, I want it to check every checkbox in the gridview and save the dataset back to the xml file.
My xml file has the following format:
My code is as follows:
Why doesn't this code work? I get the following error whilst executing it:
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I have a grid that is built as well as populated dynamically through c# code. The grid has 3 columns(3 bound fields). And data is being populated in those bound fields through c# code programatically.
Elaborating my question: I have 3 bound field columns(col1, col2 & col3) . I have to increase the rowspan of col2 and col3 headertext's to 2 i.e I want the col2 and col3 header texts to span across two row cells. But the col1 header text should span across just 1 row. And the extra rowscell that is created under col1 due to the increase in the rowspans (of col2 and col3 boundfield headertexts) should be populated with some random text, i.e something like XXXXX
My issue is that , need to change the column name(following some format) of the gridview (which is binded with XMLTextReader). Without changing directly XML file, Required to change the column name dynamically at runtime .
I have a gridview that has certain values in it that I would like to change based on a condition. For example, if a value in the column is 'x', I would like to make that Value Bold and have text that says 'Not applicable'
How can I do this? How can I programtically chnage values in a gridview?
I am using GridView ,I want to do a validation like if i edit any one of the Cell in that column, it will through the validation when the sum of column value is more than 100. How can i do this validation?