Skip to content

Replies

0
Charuk
Charuk answered on Jan 10, 2008 6:03 AM

Hi hs2!

 I think the problem might be with the "BaseColumnName" property. Just try removing this property and try. I am not sure about this but give it a try….

You have set "BaseColumnName" property to SendMail and u must be binding the data on each postback to display the data, right? So what i think is that the binding of checkbox column is overriding the current state of the checkbox. Say u have checked a checkbox, so its current state should be "True", but when u are hitting save button postback is happening and data is binding to it again and must be overriding the current state of the checkbox.

Just remove this property and check….

 

Regards,

Charuk. 

0
Charuk
Charuk answered on Jan 9, 2008 3:37 PM

Hi hs2!

 I am setting the property ColumnType=CheckBox property of the UltraGridColum. I am doing everything by coding….  On button click m just takin da instance of the grid and writing dat code and it works fine for me.

How r u checking the checkbox? If u r doing it through code behind, then the checkbox values will not persist… you have to do it through javascript.

Plz give some code so that I can see if somthig is wrong….

 

Regards,

Charuk 

0
Charuk
Charuk answered on Jan 8, 2008 5:37 AM

 Hi hs2!

You said you want to determine the checked columns on the click of save.  So try this code on the click event of the save button. I have also written this code on the click event of the button.

 

Regards,

Charuk 

0
Charuk
Charuk answered on Jan 5, 2008 6:04 AM

Use the following code to get the checked columns:

 foreach (UltraGridRow row in Grid.Rows)

            {
                if (row.Cells[columnIndex].Value.ToString().Equals("True"))
                {
                    // CheckBox is checked
                }

               else

                {

                    // CheckBox is not checked.

                }
            }